Class: Account::Cloudinary::UploadSignaturesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/account/cloudinary/upload_signatures_controller.rb

Instance Method Summary collapse

Instance Method Details

#newObject



3
4
5
# File 'app/controllers/account/cloudinary/upload_signatures_controller.rb', line 3

def new
  render plain: Cloudinary::Utils.api_sign_request(upload_signature_params.to_h, Cloudinary.config.api_secret)
end

#upload_signature_paramsObject



7
8
9
# File 'app/controllers/account/cloudinary/upload_signatures_controller.rb', line 7

def upload_signature_params
  params.require(:data).permit(:timestamp, :source)
end