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 12 def self.configure(uploader, **opts) 13 uploader.opts[:download_endpoint] ||= { disposition: "inline", download_options: {} } 14 uploader.opts[:download_endpoint].merge!(opts) 15 end
load_dependencies(uploader, **)
[show source]
# File lib/shrine/plugins/download_endpoint.rb 7 def self.load_dependencies(uploader, **) 8 uploader.plugin :rack_response 9 uploader.plugin :_urlsafe_serialization 10 end