diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-02 19:53:41 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-02 19:53:41 +0300 |
commit | 75e903c08bf405135be3e52344a3bde871252729 (patch) | |
tree | 4f932bb75e920cdbf9bcfe3e2b85f38c951451e7 /app/finders | |
parent | 8fcdd6bfaf2bf8360026e963b57b0648c63ab74b (diff) | |
download | gitlab-ce-75e903c08bf405135be3e52344a3bde871252729.tar.gz |
Fix project snippet comments loading
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/notes_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/notes_finder.rb b/app/finders/notes_finder.rb index ea055694cd7..bef82d7f0fd 100644 --- a/app/finders/notes_finder.rb +++ b/app/finders/notes_finder.rb @@ -14,7 +14,7 @@ class NotesFinder project.issues.find(target_id).notes.inc_author.fresh when "merge_request" project.merge_requests.find(target_id).mr_and_commit_notes.inc_author.fresh - when "snippet" + when "snippet", "project_snippet" project.snippets.find(target_id).notes.fresh else raise 'invalid target_type' |