module Shrine::Plugins::Derivatives::FileMethods

  1. lib/shrine/plugins/derivatives.rb

Methods

Public Instance

  1. []

Public Instance methods

[](*keys)
[show source]
    # File lib/shrine/plugins/derivatives.rb
619 def [](*keys)
620   if keys.any? { |key| key.is_a?(Symbol) }
621     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)`?"
622   else
623     super
624   end
625 end