Sha256: 0c6cd9e9a2d1837b56171d9f1ad76da26028895dc0a5bea2852a50b80100b6ff
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
module TypeStation class FileController < TypeStation::ApplicationController def download redirect_to private_download_url end private def private_download_url Cloudinary::Utils.private_download_url([params[:identifier], params[:format]].join('.'), params[:format], resource_type: :raw, attachment: true, expires_at: 1.minute.from_now) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
type_station-0.5.3 | app/controllers/type_station/file_controller.rb |