summaryrefslogtreecommitdiff
path: root/lib/api/users.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-22 11:04:56 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-22 11:04:56 -0800
commit4d56c359d343ba3a1117dfc06034820a415450d3 (patch)
tree40232c2176dc8f46e7ab96de0bd45c1bc2934173 /lib/api/users.rb
parent1018cbdc803d56e6cae385aee97aa04752d3e3fb (diff)
parenta3f645ef51ec12ce93934b4ddb11313613d8c451 (diff)
downloadgitlab-ce-4d56c359d343ba3a1117dfc06034820a415450d3.tar.gz
Merge pull request #6075 from skv-headless/remove_deprecated_finders
Remove deprecated finders
Diffstat (limited to 'lib/api/users.rb')
-rw-r--r--lib/api/users.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb
index 89ec2c61a86..ae808b6272b 100644
--- a/lib/api/users.rb
+++ b/lib/api/users.rb
@@ -119,7 +119,7 @@ module API
# DELETE /users/:id
delete ":id" do
authenticated_as_admin!
- user = User.find_by_id(params[:id])
+ user = User.find_by(id: params[:id])
if user
user.destroy