Class: ActionController::RequestForgeryProtection::ProtectionMethods::Exception
- Inherits:
-
Object
- Object
- ActionController::RequestForgeryProtection::ProtectionMethods::Exception
- Defined in:
- actionpack/lib/action_controller/metal/request_forgery_protection.rb
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.
171 172 173 |
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 171 def initialize(controller) @controller = controller end |
Instance Method Details
#handle_unverified_request ⇒ Object
175 176 177 |
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 175 def handle_unverified_request raise ActionController::InvalidAuthenticityToken end |