Module: Shrine::Plugins::DownloadEndpoint
- Defined in:
- lib/shrine/plugins/download_endpoint.rb
Overview
Documentation can be found on shrinerb.com/docs/plugins/download_endpoint
Defined Under Namespace
Modules: ClassMethods, FileMethods Classes: FileUrl
Class Method Summary collapse
Class Method Details
.configure(uploader, **opts) ⇒ Object
15 16 17 18 |
# File 'lib/shrine/plugins/download_endpoint.rb', line 15 def self.configure(uploader, **opts) uploader.opts[:download_endpoint] ||= { disposition: "inline", download_options: {} } uploader.opts[:download_endpoint].merge!(opts) end |
.load_dependencies(uploader) ⇒ Object
10 11 12 13 |
# File 'lib/shrine/plugins/download_endpoint.rb', line 10 def self.load_dependencies(uploader, **) uploader.plugin :rack_response uploader.plugin :_urlsafe_serialization end |