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

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

Instance Method Summary collapse

Constructor Details

#initialize(controller) ⇒ Exception

Returns a new instance of Exception.



158
159
160
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 158

def initialize(controller)
  @controller = controller
end

Instance Method Details

#handle_unverified_requestObject



162
163
164
# File 'lib/action_controller/metal/request_forgery_protection.rb', line 162

def handle_unverified_request
  raise ActionController::InvalidAuthenticityToken
end