diff options
author | James Lopez <james@jameslopez.es> | 2017-09-27 11:48:33 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-09-28 08:46:39 +0200 |
commit | 67d06dee30379fc93be196e2cf509660d1661aea (patch) | |
tree | de02bb9866dcc70cc7e65f9599bc7e8392060775 /app/services/users | |
parent | cbb90d8f84d1f79560066d8ea3c6346906e7da94 (diff) | |
download | gitlab-ce-67d06dee30379fc93be196e2cf509660d1661aea.tar.gz |
refactor users update service
Diffstat (limited to 'app/services/users')
-rw-r--r-- | app/services/users/update_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/users/update_service.rb b/app/services/users/update_service.rb index 9f013af38dc..e2e720a5703 100644 --- a/app/services/users/update_service.rb +++ b/app/services/users/update_service.rb @@ -2,9 +2,9 @@ module Users class UpdateService < BaseService include NewUserNotifier - def initialize(current_user, user, params = {}) + def initialize(current_user, params = {}) @current_user = current_user - @user = user + @user = params[:user] @params = params.dup end |