Merge branch 'clean-api-params' into 'master'

Parameter already enforced via grape

See merge request !8344
This commit is contained in:
Sean McGivern 2016-12-28 15:22:11 +00:00
commit 6892216f5f

View file

@ -69,8 +69,6 @@ module API
optional :created_at, type: String, desc: 'The creation date of the note'
end
post ":id/#{noteables_str}/:noteable_id/notes" do
required_attributes! [:body]
opts = {
note: params[:body],
noteable_type: noteables_str.classify,