Parameter already enforced via grape
This commit is contained in:
parent
b93c72e33a
commit
2ac92662ea
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue