module Shrine::Plugins::FormAssign

  1. lib/shrine/plugins/form_assign.rb

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

Methods

Public Class

  1. configure
  2. load_dependencies

Public Class methods

configure(uploader, **opts)
[show source]
   # File lib/shrine/plugins/form_assign.rb
11 def self.configure(uploader, **opts)
12   uploader.opts[:form_assign] ||= { result: :params }
13   uploader.opts[:form_assign].merge!(opts)
14 end
load_dependencies(uploader)
[show source]
  # File lib/shrine/plugins/form_assign.rb
7 def self.load_dependencies(uploader)
8   uploader.plugin :entity
9 end