Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-11-14 16:44:27 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2016-11-14 17:22:06 +0300
commit76bd09326fe070d4c865b6fbc1718673d096c178 (patch)
tree51cdbf23ce1e1beeebc84b9e95a5b8f9eeb6ac66 /lib/api/deploy_keys.rb
parent36fa5d660df96c49484cd27695da1df6e361eb8f (diff)
Use declared_params helper in API
Diffstat (limited to 'lib/api/deploy_keys.rb')
-rw-r--r--lib/api/deploy_keys.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/deploy_keys.rb b/lib/api/deploy_keys.rb
index 425df2c176a..85360730841 100644
--- a/lib/api/deploy_keys.rb
+++ b/lib/api/deploy_keys.rb
@@ -82,7 +82,7 @@ module API
end
post ":id/#{path}/:key_id/enable" do
key = ::Projects::EnableDeployKeyService.new(user_project,
- current_user, declared(params)).execute
+ current_user, declared_params).execute
if key
present key, with: Entities::SSHKey