Module: Shrine::Plugins::DefaultStorage

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

Overview

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

Defined Under Namespace

Modules: AttacherClassMethods, AttacherMethods

Class Method Summary collapse

Class Method Details

.configure(uploader, **opts) ⇒ Object


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

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