summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-06-20 08:25:29 +0200
committerJasper Maes <jaspermaes.jm@gmail.com>2018-06-20 08:30:24 +0200
commite3046dcabe6d87eefd37ba124d42bcb721ec0a6c (patch)
treeb1126fdee476cbacfcb4ed6197a61485049c20a2 /app
parentf7b59b9f14014aab7d4d3e23e3565829d028c870 (diff)
downloadgitlab-ce-e3046dcabe6d87eefd37ba124d42bcb721ec0a6c.tar.gz
Rails5 fix Admin::HooksController
Diffstat (limited to 'app')
-rw-r--r--app/controllers/admin/hooks_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/hooks_controller.rb b/app/controllers/admin/hooks_controller.rb
index 2b47819303e..fb788c47ef1 100644
--- a/app/controllers/admin/hooks_controller.rb
+++ b/app/controllers/admin/hooks_controller.rb
@@ -9,7 +9,7 @@ class Admin::HooksController < Admin::ApplicationController
end
def create
- @hook = SystemHook.new(hook_params)
+ @hook = SystemHook.new(hook_params.to_h)
if @hook.save
redirect_to admin_hooks_path, notice: 'Hook was successfully created.'