diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-09-15 10:49:21 +0400 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-09-15 10:49:21 +0400 |
commit | 9159be3a50e3bc94f30f85d9640eeac212bf0948 (patch) | |
tree | b032cb8db77add039debf05eb645630ba9f7ee1d /app/contexts | |
parent | caeb65b1892c8a140d8f72f6aafa3f5fd1d3cbc3 (diff) |
Fix MR diff comments. Fix wiki comments loading error
Diffstat (limited to 'app/contexts')
-rw-r--r-- | app/contexts/notes/load_context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/contexts/notes/load_context.rb b/app/contexts/notes/load_context.rb index 6d26e16a56c..f92a780187d 100644 --- a/app/contexts/notes/load_context.rb +++ b/app/contexts/notes/load_context.rb @@ -20,7 +20,7 @@ module Notes # this is the only case, where the order is DESC project.common_notes.order("created_at DESC, id DESC").limit(50) when "wiki" - project.wikis.reverse.map {|w| w.notes.fresh }.flatten[0..20] + project.wiki_notes.limit(20) end @notes = if after_id |