Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Unglaub <florian.unglaub@nix-wie-weg.de>2012-08-31 18:24:12 +0400
committerFlorian Unglaub <florian.unglaub@nix-wie-weg.de>2012-08-31 18:24:12 +0400
commit1b0198f1d3fc621b339af0e7fd79a74919856d46 (patch)
tree6f4c9134021e9e2c7f066a087e0cb04501329008 /app/controllers/omniauth_callbacks_controller.rb
parent6d6c7a17ea2d2a61d4f251d6d746ebe9438405ca (diff)
save newly created users directly in the model
Diffstat (limited to 'app/controllers/omniauth_callbacks_controller.rb')
-rw-r--r--app/controllers/omniauth_callbacks_controller.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/controllers/omniauth_callbacks_controller.rb b/app/controllers/omniauth_callbacks_controller.rb
index 248a75a88cb..3be285ba1f6 100644
--- a/app/controllers/omniauth_callbacks_controller.rb
+++ b/app/controllers/omniauth_callbacks_controller.rb
@@ -39,7 +39,6 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
redirect_to profile_path
else
@user = User.find_or_new_for_omniauth(oauth)
- @user.save! if @user.try('new_record?')
if @user
sign_in_and_redirect @user