summaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-06-19 15:35:44 +0200
committerJames Lopez <james@jameslopez.es>2017-06-23 11:41:42 +0200
commit831b2fccf9a2efc772d62c05f52c612f23a63ea9 (patch)
treec36fd08364a01f2ba713f8df5aa3dd1c69314220 /app/models/user.rb
parent87bf08c96cf9f3c451d0746d11ceac149adf22db (diff)
downloadgitlab-ce-831b2fccf9a2efc772d62c05f52c612f23a63ea9.tar.gz
update missing email actions
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index bc754768ab1..6ca78278db8 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -495,7 +495,7 @@ class User < ActiveRecord::Base
primary_email_record = emails.find_by(email: email)
if primary_email_record
Emails::DestroyService.new(self, self, email: email).execute
- emails.create(email: email_was)
+ Emails::CreateService.new(self, self, email: email_was).execute
update_secondary_emails!
end