summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2016-12-28 15:22:11 +0000
committerSean McGivern <sean@mcgivern.me.uk>2016-12-28 15:22:11 +0000
commit6892216f5f65687d4dc53e7e08c649e858fa8ff4 (patch)
tree9d7633f773dc0cbac97eefd176f984b85a12896f /lib
parentb32176bce606d2a09326f7e391942ecfb8f1a74e (diff)
parent2ac92662ea1577f4a71751ded4dafbd90d74bd2b (diff)
downloadgitlab-ce-6892216f5f65687d4dc53e7e08c649e858fa8ff4.tar.gz
Merge branch 'clean-api-params' into 'master'
Parameter already enforced via grape See merge request !8344
Diffstat (limited to 'lib')
-rw-r--r--lib/api/notes.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/api/notes.rb b/lib/api/notes.rb
index d0faf17714b..284e4cf549a 100644
--- a/lib/api/notes.rb
+++ b/lib/api/notes.rb
@@ -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,