Update wikis_controller.rb to use strong params

This commit is contained in:
Keifer Furzland 2017-03-26 01:47:10 +00:00
parent f7d69a74a8
commit ddd97f3c91
No known key found for this signature in database
GPG Key ID: 009BE76723929CF7
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -0,0 +1,4 @@
---
title: Update wikis_controller.rb to use strong params
merge_request:
author: