123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Inherits: Object
Defined in: actionpack/lib/action_controller/metal/request_forgery_protection.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(controller) ⇒ ResetSession

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 276

def initialize(controller)
  @controller = controller
end

Instance Method Details

#handle_unverified_request

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 280

def handle_unverified_request
  @controller.reset_session
end