Module: Shrine::Plugins::MetadataAttributes::AttacherClassMethods

Defined in:
lib/shrine/plugins/metadata_attributes.rb

Instance Method Summary collapse

Instance Method Details

#metadata_attributes(mappings = nil) ⇒ Object


17
18
19
20
21
22
23
# File 'lib/shrine/plugins/metadata_attributes.rb', line 17

def (mappings = nil)
  if mappings
    shrine_class.opts[:metadata_attributes].merge!(mappings)
  else
    shrine_class.opts[:metadata_attributes]
  end
end