Documentation can be found on shrinerb.com/docs/plugins/download_endpoint
Classes and Modules
Public Class methods
configure(uploader, **opts)
[show source]
# File lib/shrine/plugins/download_endpoint.rb 15 def self.configure(uploader, **opts) 16 uploader.opts[:download_endpoint] ||= { disposition: "inline", download_options: {} } 17 uploader.opts[:download_endpoint].merge!(opts) 18 end
load_dependencies(uploader, **)
[show source]
# File lib/shrine/plugins/download_endpoint.rb 10 def self.load_dependencies(uploader, **) 11 uploader.plugin :rack_response 12 uploader.plugin :_urlsafe_serialization 13 end