Class: Devise::OmniauthCallbacksController

Inherits:
DeviseController show all
Defined in:
app/controllers/devise/omniauth_callbacks_controller.rb

Instance Method Summary collapse

Methods inherited from DeviseController

#_prefixes, #devise_mapping, #resource, #resource_class, #resource_name, #resource_params, #signed_in_resource

Instance Method Details

#failureObject



2
3
4
5
# File 'app/controllers/devise/omniauth_callbacks_controller.rb', line 2

def failure
  set_flash_message :alert, :failure, :kind => failed_strategy.name.to_s.humanize, :reason => failure_message
  redirect_to after_omniauth_failure_path_for(resource_name)
end