module Shrine::Plugins::DownloadEndpoint

  1. lib/shrine/plugins/download_endpoint.rb

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

Methods

Public Class

  1. configure
  2. load_dependencies

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