Class: Socialite::UsersController
- Inherits:
-
SocialiteController
- Object
- ApplicationController
- SocialiteController
- Socialite::UsersController
- Defined in:
- app/controllers/socialite/users_controller.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) new
5 6 7 8 9 10 |
# File 'app/controllers/socialite/users_controller.rb', line 5 def new if current_user redirect_to main_app.root_path, notice: I18n.t('socialite.already_registered') end @user = env['omniauth.identity'] ||= Socialite.user_class.new end |