Module: Shrine::Plugins::DefaultUrl

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

Overview

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

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_url.rb', line 7

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