Class: ActionController::RequestForgeryProtection::ProtectionMethods::Exception
- Inherits:
-
Object
- Object
- ActionController::RequestForgeryProtection::ProtectionMethods::Exception
- Defined in:
- actionpack/lib/action_controller/metal/request_forgery_protection.rb
Instance Attribute Summary collapse
-
#warning_message ⇒ Object
Returns the value of attribute warning_message.
Instance Method Summary collapse
- #handle_unverified_request ⇒ Object
-
#initialize(controller) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(controller) ⇒ Exception
Returns a new instance of Exception.
307 308 309 |
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 307 def initialize(controller) @controller = controller end |
Instance Attribute Details
#warning_message ⇒ Object
Returns the value of attribute warning_message.
305 306 307 |
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 305 def @warning_message end |
Instance Method Details
#handle_unverified_request ⇒ Object
311 312 313 |
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 311 def handle_unverified_request raise ActionController::InvalidAuthenticityToken, end |