instance method
protect_against_forgery?
Ruby on Rails 6.1.7.10
Since v2.2.3 PrivateSignature
protect_against_forgery?()
Checks if the controller allows forgery protection.
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 440
def protect_against_forgery? # :doc:
allow_forgery_protection
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 440
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection