Module: Shrine::Plugins::UploadEndpoint

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

Overview

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

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.configure(uploader, **opts) ⇒ Object


16
17
18
19
# File 'lib/shrine/plugins/upload_endpoint.rb', line 16

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

.load_dependencies(uploader) ⇒ Object


12
13
14
# File 'lib/shrine/plugins/upload_endpoint.rb', line 12

def self.load_dependencies(uploader, **)
  uploader.plugin :rack_file
end