diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-07-02 21:18:46 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-07-02 21:18:46 +0530 |
commit | 2949e30a05d7174db5b9981385e8eee69469eabc (patch) | |
tree | 17fe580800e34e1d8c3c2530bcebf75e50676ad4 /actionpack/lib/action_controller/metal/request_forgery_protection.rb | |
parent | 007214cfb92783d682ad1e01e791595a74c0f7ed (diff) | |
download | rails-2949e30a05d7174db5b9981385e8eee69469eabc.tar.gz rails-2949e30a05d7174db5b9981385e8eee69469eabc.tar.bz2 rails-2949e30a05d7174db5b9981385e8eee69469eabc.zip |
document handle_unverified_request method
Diffstat (limited to 'actionpack/lib/action_controller/metal/request_forgery_protection.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal/request_forgery_protection.rb | 2 |
1 files changed, 2 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 441b214c4e..2271470334 100644 --- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb +++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb @@ -78,6 +78,8 @@ module ActionController #:nodoc: end end + # This is the method that defines the application behaviour when a request is found to be unverified. + # By default, \Rails resets the session when it finds an unverified request. def handle_unverified_request reset_session end |