API: restore broken merge request commenting

This commit is contained in:
Nihad Abbasov 2012-11-29 12:10:07 -08:00
parent c946bf886c
commit 961cb285b0
2 changed files with 20 additions and 15 deletions

View file

@ -75,5 +75,10 @@ module Gitlab
expose :author, using: Entities::UserBasic
expose :updated_at, :created_at
end
class MRNote < Grape::Entity
expose :note
expose :author, using: Entities::UserBasic
end
end
end

View file

@ -107,7 +107,7 @@ module Gitlab
note.author = current_user
if note.save
present note, with: Entities::Note
present note, with: Entities::MRNote
else
not_found!
end