Merge branch 'rails5-fix-48142' into 'master'

Rails5 fix Admin::HooksController

Closes #48142

See merge request gitlab-org/gitlab-ce!20017
This commit is contained in:
Rémy Coutable 2018-06-20 11:50:55 +00:00
commit 1a0ee66275
2 changed files with 6 additions and 1 deletions

View File

@ -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.'

View File

@ -0,0 +1,5 @@
---
title: Rails5 fix Admin::HooksController
merge_request: 20017
author: Jasper Maes
type: fixed