module Shrine::Plugins::AddMetadata::AttacherMethods

  1. lib/shrine/plugins/add_metadata.rb

Methods

Public Instance

  1. add_metadata

Public Instance methods

add_metadata(new_metadata, &block)
[show source]
   # File lib/shrine/plugins/add_metadata.rb
61 def add_metadata(new_metadata, &block)
62   file!.add_metadata(new_metadata, &block)
63   set(file) # trigger model write
64 end