Class: ActionController::RequestForgeryProtection::ProtectionMethods::ResetSession

Inherits:
Object
  • Object
show all
Defined in:
actionpack/lib/action_controller/metal/request_forgery_protection.rb

Instance Method Summary collapse

Constructor Details

#initialize(controller) ⇒ ResetSession


180
181
182
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 180

def initialize(controller)
  @controller = controller
end

Instance Method Details

#handle_unverified_requestObject


184
185
186
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 184

def handle_unverified_request
  @controller.reset_session
end