summaryrefslogtreecommitdiff
path: root/lib/api/runners.rb
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-11-10 16:32:59 +0100
committerRobert Schilling <rschilling@student.tugraz.at>2016-11-14 11:17:51 +0100
commit510092c83ad6b35dc4cc0ac1f15c643952f519b5 (patch)
tree2925893e0fbc980b8962a72a7004abd1efcfb342 /lib/api/runners.rb
parent87cc458a22e0cf91ca5ffe5b988077ec41e59404 (diff)
downloadgitlab-ce-510092c83ad6b35dc4cc0ac1f15c643952f519b5.tar.gz
Use #to_h to convert params to a hashgrapify-to-h
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r--lib/api/runners.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 84c19c432b0..b145cce7e3e 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -57,9 +57,7 @@ module API
runner = get_runner(params.delete(:id))
authenticate_update_runner!(runner)
- runner_params = declared(params, include_missing: false)
-
- if runner.update(runner_params)
+ if runner.update(declared_params(include_missing: false))
present runner, with: Entities::RunnerDetails, current_user: current_user
else
render_validation_error!(runner)