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

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

Instance Method Summary collapse

Constructor Details

#initialize(controller) ⇒ ResetSession

Returns a new instance of ResetSession.



234
235
236
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 234

def initialize(controller)
  @controller = controller
end

Instance Method Details

#handle_unverified_requestObject



238
239
240
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 238

def handle_unverified_request
  @controller.reset_session
end