tab/app/controllers/callbacks_controller.rb

11 lines
246 B
Ruby
Raw Normal View History

2015-09-08 13:34:29 +02:00
class CallbacksController < Devise::OmniauthCallbacksController
def zeuswpi
@user = User.from_omniauth(request.env["omniauth.auth"])
sign_in_and_redirect @user
end
def after_omniauth_failure_path_for(scope)
root_path
end
end