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:
authorJames Lopez <james@jameslopez.es>2017-09-27 12:48:33 +0300
committerJames Lopez <james@jameslopez.es>2017-09-28 09:46:39 +0300
commit67d06dee30379fc93be196e2cf509660d1661aea (patch)
treede02bb9866dcc70cc7e65f9599bc7e8392060775 /app/services/emails
parentcbb90d8f84d1f79560066d8ea3c6346906e7da94 (diff)
refactor users update service
Diffstat (limited to 'app/services/emails')
-rw-r--r--app/services/emails/destroy_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/emails/destroy_service.rb b/app/services/emails/destroy_service.rb
index 02dd803fca6..44011cc36c8 100644
--- a/app/services/emails/destroy_service.rb
+++ b/app/services/emails/destroy_service.rb
@@ -7,7 +7,7 @@ module Emails
private
def update_secondary_emails!
- result = ::Users::UpdateService.new(@current_user, @user).execute do |user|
+ result = ::Users::UpdateService.new(@current_user, user: @user).execute do |user|
user.update_secondary_emails!
end