From 2949e30a05d7174db5b9981385e8eee69469eabc Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Sat, 2 Jul 2011 21:18:46 +0530 Subject: document handle_unverified_request method --- actionpack/lib/action_controller/metal/request_forgery_protection.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/lib/action_controller') 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 -- cgit v1.2.3