Module: Shrine::Plugins::UrlOptions

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

Overview

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

Defined Under Namespace

Modules: FileMethods

Class Method Summary collapse

Class Method Details

.configure(uploader, **opts) ⇒ Object


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

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