summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-11 13:33:06 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-11 13:33:06 +0000
commit80174c16d6e28f751e6afc59f9ba28f8c6b792fc (patch)
treecb6937b3d62d88e6c6e844f281fc8322bab4036a /app
parent699ffeb878798934bff0abd695c52c69d03548af (diff)
parent2c047642f5afd68faaafa39385d5b2c29de7ea1e (diff)
downloadgitlab-ce-80174c16d6e28f751e6afc59f9ba28f8c6b792fc.tar.gz
Merge branch 'feature-oauth-refactoring' into 'master'
Feature oauth refactoring Only use class methods when needed. In addition, make a proper extension of Gitlab::Oauth::User. See merge request !1062
Diffstat (limited to 'app')
-rw-r--r--app/models/user.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index f1ff76edd15..15e56a62a68 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -474,10 +474,6 @@ class User < ActiveRecord::Base
email =~ /\Atemp-email-for-oauth/
end
- def generate_tmp_oauth_email
- self.email = "temp-email-for-oauth-#{username}@gitlab.localhost"
- end
-
def public_profile?
authorized_projects.public_only.any?
end