123456789_123456789_123456789_123456789_123456789_

Exception: ActionController::RequestForgeryProtection::ProtectionMethods::Exception

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ::Exception
Instance Chain:
self, ::Exception
Inherits: Exception
  • ::Object
Defined in: actionpack/lib/action_controller/metal/request_forgery_protection.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(controller) ⇒ Exception

[ GitHub ]

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

def initialize(controller)
  @controller = controller
end

Instance Attribute Details

#warning_message (rw)

[ GitHub ]

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

attr_accessor :warning_message

Instance Method Details

#handle_unverified_request

[ GitHub ]

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

def handle_unverified_request
  raise ActionController::InvalidAuthenticityToken, warning_message
end