module Shrine::Plugins::DownloadEndpoint
Documentation can be found on shrinerb.com/docs/plugins/download_endpoint
Public Class Methods
configure(uploader, **opts)
click to toggle source
# File lib/shrine/plugins/download_endpoint.rb, line 12 def self.configure(uploader, **opts) uploader.opts[:download_endpoint] ||= { disposition: "inline", download_options: {} } uploader.opts[:download_endpoint].merge!(opts) end
load_dependencies(uploader, **)
click to toggle source
# File lib/shrine/plugins/download_endpoint.rb, line 7 def self.load_dependencies(uploader, **) uploader.plugin :rack_response uploader.plugin :_urlsafe_serialization end