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

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

Instance Method Summary collapse

Constructor Details

#initialize(controller) ⇒ Exception

Returns a new instance of Exception.



210
211
212
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 210

def initialize(controller)
  @controller = controller
end

Instance Method Details

#handle_unverified_requestObject



214
215
216
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 214

def handle_unverified_request
  raise ActionController::InvalidAuthenticityToken
end