diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-07-20 16:33:18 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-07-20 16:33:18 +0300 |
commit | 6b8ad689da393125bb2d1e548211c9a50039b0a7 (patch) | |
tree | eb35d412b07e28c58d9cbd017ca357ae16aefef0 /lib/api/notes.rb | |
parent | 4766a77b1d44bb6989e6c86a7a7dd10f6983ba4e (diff) | |
download | gitlab-ce-6b8ad689da393125bb2d1e548211c9a50039b0a7.tar.gz |
Update grape gemdz-update-grape
New version of the gem returns 200 status code on delete with content
instead of 204 so we explicitly set status code to keep existing
behavior
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api/notes.rb')
-rw-r--r-- | lib/api/notes.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/notes.rb b/lib/api/notes.rb index 01ca62b593f..65ff89edf65 100644 --- a/lib/api/notes.rb +++ b/lib/api/notes.rb @@ -131,6 +131,7 @@ module API note = user_project.notes.find(params[:note_id]) authorize! :admin_note, note + status 204 ::Notes::DestroyService.new(user_project, current_user).execute(note) end end |