Skip to content
Browse files

document handle_unverified_request method

  • Loading branch information...
1 parent 007214c commit 2949e30a05d7174db5b9981385e8eee69469eabc @vijaydev vijaydev committed Jul 2, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/lib/action_controller/metal/request_forgery_protection.rb
View
2 actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -78,6 +78,8 @@ def verify_authenticity_token
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

0 comments on commit 2949e30

Please sign in to comment.
Something went wrong with that request. Please try again.