diff options
author | Xavier Noria <fxn@hashref.com> | 2013-05-09 23:16:56 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2013-05-09 23:16:56 -0700 |
commit | 0593c00dfbdab221116e49d3b0a7c57605160fe2 (patch) | |
tree | fb4fcbe27361f4e95fa4c042894280b6b7133760 | |
parent | 4ae2309418fde718bd995d72b42672228a2f18b4 (diff) | |
parent | cd35c1909d44f3c033dc4efbc381d389a19aa2db (diff) | |
download | rails-0593c00dfbdab221116e49d3b0a7c57605160fe2.tar.gz rails-0593c00dfbdab221116e49d3b0a7c57605160fe2.tar.bz2 rails-0593c00dfbdab221116e49d3b0a7c57605160fe2.zip |
Merge pull request #10510 from think602/master
[ci skip] document protect_against_forgery? method
-rw-r--r-- | actionpack/lib/action_controller/metal/request_forgery_protection.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb index d275a854fd..573c739da4 100644 --- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb +++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb @@ -199,6 +199,7 @@ module ActionController #:nodoc: params[request_forgery_protection_token] end + # Checks if the controller allows forgery protection. def protect_against_forgery? allow_forgery_protection end |