instance method
verify_authenticity_token
Ruby on Rails 4.0.13
Since v2.2.3Signature
verify_authenticity_token()
The actual before_action that is used. Modify this to change how you handle unverified requests.
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 177
def verify_authenticity_token
unless verified_request?
logger.warn "Can't verify CSRF token authenticity" if logger
handle_unverified_request
end
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 177
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection