diff options
author | Brett Walker <brett@digitalmoksha.com> | 2017-09-13 14:47:09 +0200 |
---|---|---|
committer | Brett Walker <brett@digitalmoksha.com> | 2017-09-23 15:24:53 +0200 |
commit | b2d53791614da093a32fd7040371cf2054aa9817 (patch) | |
tree | a1ca7b4655823e70f0ba35aae3cecfa15f230590 /app/controllers/admin/users_controller.rb | |
parent | 09726bdf446b4673d4f92bc9132a6e34f3a67160 (diff) | |
download | gitlab-ce-b2d53791614da093a32fd7040371cf2054aa9817.tar.gz |
fix calls to Emails::DestroyService
Diffstat (limited to 'app/controllers/admin/users_controller.rb')
-rw-r--r-- | app/controllers/admin/users_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index cbcef70e957..abf03622b17 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -155,7 +155,7 @@ class Admin::UsersController < Admin::ApplicationController def remove_email email = user.emails.find(params[:email_id]) - success = Emails::DestroyService.new(user, email: email.email).execute + success = Emails::DestroyService.new(user).execute(email) respond_to do |format| if success |