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