module Shrine::Plugins::MetadataAttributes::AttacherClassMethods

  1. lib/shrine/plugins/metadata_attributes.rb

Methods

Public Instance

  1. metadata_attributes

Public Instance methods

metadata_attributes(mappings = nil)
[show source]
   # File lib/shrine/plugins/metadata_attributes.rb
17 def metadata_attributes(mappings = nil)
18   if mappings
19     shrine_class.opts[:metadata_attributes].merge!(mappings)
20   else
21     shrine_class.opts[:metadata_attributes]
22   end
23 end