diff options
author | James Lopez <james@jameslopez.es> | 2017-06-22 16:54:54 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-06-23 11:41:43 +0200 |
commit | e2e0b175ae43bef44ba5fdc45b4a719aaae83422 (patch) | |
tree | 8a578fa45ba5fbd5da456c1fd439f21220f5cec8 /app/services | |
parent | 12dc3992ea189452532587a2b30b8765c0f09381 (diff) | |
download | gitlab-ce-e2e0b175ae43bef44ba5fdc45b4a719aaae83422.tar.gz |
fix specs
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/users/update_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/users/update_service.rb b/app/services/users/update_service.rb index 33f3686c8d5..36dcc69f8cf 100644 --- a/app/services/users/update_service.rb +++ b/app/services/users/update_service.rb @@ -10,7 +10,7 @@ module Users def execute(skip_authorization: false, validate: true, &block) assign_attributes(skip_authorization, &block) - if @user.save(validate: validate) || @user.errors.empty? + if @user.save(validate: validate) success else error(@user.errors.full_messages.uniq.join('. ')) |