Sha256: b5de61d8a4a0f7342d07d0188940bdb6090073983eae2410e3c5f7d917754033
Contents?: true
Size: 484 Bytes
Versions: 6
Compression:
Stored size: 484 Bytes
Contents
module Cloudinary::CloudinaryController protected def valid_cloudinary_response? received_signature = request.query_parameters[:signature] calculated_signature = Cloudinary::Utils.api_sign_request( request.query_parameters.select{|key, value| [:public_id, :version].include?(key.to_sym)}, Cloudinary.config.api_secret) return received_signature == calculated_signature end end ActionController::Base.send :include, Cloudinary::CloudinaryController
Version data entries
6 entries across 6 versions & 1 rubygems