Module: Shrine::Plugins::AddMetadata::AttacherMethods

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

Instance Method Summary collapse

Instance Method Details

#add_metadata(new_metadata, &block) ⇒ Object


61
62
63
64
# File 'lib/shrine/plugins/add_metadata.rb', line 61

def (, &block)
  file!.(, &block)
  set(file) # trigger model write
end