Sha256: 64ab6975d3a3e63bce6d82d5151a3203f1cea3285db00f40632ce71415dcb906

Contents?: true

Size: 339 Bytes

Versions: 10

Compression:

Stored size: 339 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], attachment: true, expires_at: 1.minute.from_now )
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
type_station-0.5.2 app/controllers/type_station/file_controller.rb
type_station-0.5.1 app/controllers/type_station/file_controller.rb
type_station-0.4.7 app/controllers/type_station/file_controller.rb
type_station-0.4.6 app/controllers/type_station/file_controller.rb
type_station-0.4.5 app/controllers/type_station/file_controller.rb
type_station-0.4.4 app/controllers/type_station/file_controller.rb
type_station-0.4.3 app/controllers/type_station/file_controller.rb
type_station-0.4.2 app/controllers/type_station/file_controller.rb
type_station-0.4.1 app/controllers/type_station/file_controller.rb
type_station-0.4.0 app/controllers/type_station/file_controller.rb