Module: Shrine::Plugins::AddMetadata

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

Overview

Documentation can be found on shrinerb.com/docs/plugins/add_metadata

Defined Under Namespace

Modules: AttacherMethods, ClassMethods, FileMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.configure(uploader) ⇒ Object


7
8
9
# File 'lib/shrine/plugins/add_metadata.rb', line 7

def self.configure(uploader)
  uploader.opts[:add_metadata] ||= { definitions: [] }
end