Class: Account::Cloudinary::UploadSignaturesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Account::Cloudinary::UploadSignaturesController
- Defined in:
- app/controllers/account/cloudinary/upload_signatures_controller.rb
Instance Method Summary collapse
Instance Method Details
#new ⇒ Object
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_params ⇒ Object
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 |