Module: Shrine::Plugins::FormAssign

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

Overview

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

Defined Under Namespace

Modules: AttacherMethods

Class Method Summary collapse

Class Method Details

.configure(uploader, **opts) ⇒ Object


11
12
13
14
# File 'lib/shrine/plugins/form_assign.rb', line 11

def self.configure(uploader, **opts)
  uploader.opts[:form_assign] ||= { result: :params }
  uploader.opts[:form_assign].merge!(opts)
end

.load_dependencies(uploader) ⇒ Object


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

def self.load_dependencies(uploader)
  uploader.plugin :entity
end