Class: ActionController::RequestForgeryProtection::ProtectionMethods::ResetSession
- Inherits:
-
Object
- Object
- ActionController::RequestForgeryProtection::ProtectionMethods::ResetSession
- Defined in:
- lib/action_controller/metal/request_forgery_protection.rb
Instance Method Summary collapse
- #handle_unverified_request ⇒ Object
-
#initialize(controller) ⇒ ResetSession
constructor
A new instance of ResetSession.
Constructor Details
#initialize(controller) ⇒ ResetSession
Returns a new instance of ResetSession.
276 277 278 |
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 276 def initialize(controller) @controller = controller end |
Instance Method Details
#handle_unverified_request ⇒ Object
280 281 282 |
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 280 def handle_unverified_request @controller.reset_session end |