Commit 1b0198f1d3fc621b339af0e7fd79a74919856d46
1 parent
6d6c7a17
Exists in
master
and in
4 other branches
save newly created users directly in the model
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
app/controllers/omniauth_callbacks_controller.rb
| ... | ... | @@ -39,7 +39,6 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController |
| 39 | 39 | redirect_to profile_path |
| 40 | 40 | else |
| 41 | 41 | @user = User.find_or_new_for_omniauth(oauth) |
| 42 | - @user.save! if @user.try('new_record?') | |
| 43 | 42 | |
| 44 | 43 | if @user |
| 45 | 44 | sign_in_and_redirect @user | ... | ... |