Update wikis_controller.rb to use strong params
This commit is contained in:
parent
f7d69a74a8
commit
ddd97f3c91
|
@ -124,6 +124,6 @@ class Projects::WikisController < Projects::ApplicationController
|
|||
end
|
||||
|
||||
def wiki_params
|
||||
params[:wiki].slice(:title, :content, :format, :message)
|
||||
params.require(:wiki).permit(:title, :content, :format, :message)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Update wikis_controller.rb to use strong params
|
||||
merge_request:
|
||||
author:
|
Loading…
Reference in New Issue