summaryrefslogtreecommitdiff
path: root/app/services/users
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2019-01-02 21:06:55 +0100
committerJasper Maes <jaspermaes.jm@gmail.com>2019-01-11 21:19:01 +0100
commit30e2a8f08cbd70c4f296a4abe0689defc73713c9 (patch)
tree576d6fa2bf5051f2574e95346b3add6a8a449efd /app/services/users
parentfe4f8cad21155c53aaf07a137d27bec9039a6379 (diff)
downloadgitlab-ce-30e2a8f08cbd70c4f296a4abe0689defc73713c9.tar.gz
Fix several ActionController::Parameters deprecations
Diffstat (limited to 'app/services/users')
-rw-r--r--app/services/users/update_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/users/update_service.rb b/app/services/users/update_service.rb
index af4fe1aebb9..0b00bd135eb 100644
--- a/app/services/users/update_service.rb
+++ b/app/services/users/update_service.rb
@@ -55,7 +55,7 @@ module Users
params.reject! { |key, _| read_only.include?(key.to_sym) }
end
- @user.assign_attributes(params) if params.any?
+ @user.assign_attributes(params) unless params.empty?
end
end
end