module Shrine::Plugins::Derivatives::FileMethods
Public Instance Methods
[](*keys)
click to toggle source
Calls superclass method
# File lib/shrine/plugins/derivatives.rb, line 619 def [](*keys) if keys.any? { |key| key.is_a?(Symbol) } fail Error, "Shrine::UploadedFile#[] doesn't accept symbol metadata names. Did you happen to call `record.attachment[:derivative_name]` when you meant to call `record.attachment(:derivative_name)`?" else super end end