class OmniauthCallbacksController
Public Instance Methods
all()
click to toggle source
# File lib/generators/templates/controllers/omniauth_callbacks_controller.rb, line 3 def all p env["omniauth.auth"] user = User.from_omniauth(env["omniauth.auth"], current_user) if user.persisted? flash[:notice] = "You are in..!!! Go to edit profile to see the status for the accounts" sign_in_and_redirect(user) else session["devise.user_attributes"] = user.attributes redirect_to new_user_registration_url end end
failure()
click to toggle source
Calls superclass method
# File lib/generators/templates/controllers/omniauth_callbacks_controller.rb, line 15 def failure #handle you logic here.. #and delegate to super. super end