Make notes for merge requests include commit notes and add helpers

This commit is contained in:
Riyad Preukschas 2012-10-10 12:06:30 +02:00
parent dda852a0d5
commit 3f72af9994
4 changed files with 16 additions and 2 deletions

View file

@ -13,7 +13,7 @@ module Notes
when "issue"
project.issues.find(target_id).notes.inc_author.fresh.limit(20)
when "merge_request"
project.merge_requests.find(target_id).notes.inc_author.fresh.limit(20)
project.merge_requests.find(target_id).mr_and_commit_notes.inc_author.fresh.limit(20)
when "snippet"
project.snippets.find(target_id).notes.fresh
when "wall"