diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-11-14 14:44:27 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-11-14 15:22:06 +0100 |
commit | 76bd09326fe070d4c865b6fbc1718673d096c178 (patch) | |
tree | 51cdbf23ce1e1beeebc84b9e95a5b8f9eeb6ac66 /lib/api/system_hooks.rb | |
parent | 36fa5d660df96c49484cd27695da1df6e361eb8f (diff) | |
download | gitlab-ce-76bd09326fe070d4c865b6fbc1718673d096c178.tar.gz |
Use declared_params helper in APIgrapify-declared-params
Diffstat (limited to 'lib/api/system_hooks.rb')
-rw-r--r-- | lib/api/system_hooks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/system_hooks.rb b/lib/api/system_hooks.rb index b6bfff9f20f..708ec8cfe70 100644 --- a/lib/api/system_hooks.rb +++ b/lib/api/system_hooks.rb @@ -27,7 +27,7 @@ module API optional :enable_ssl_verification, type: Boolean, desc: "Do SSL verification when triggering the hook" end post do - hook = SystemHook.new declared(params, include_missing: false).to_h + hook = SystemHook.new(declared_params(include_missing: false)) if hook.save present hook, with: Entities::Hook |