Module: Shrine::Plugins::UploadOptions

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

Overview

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

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.configure(uploader, **opts) ⇒ Object


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

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