notes count for wall

This commit is contained in:
Dmitriy Zaporozhets 2012-02-27 20:34:55 +02:00
parent 8470d70da6
commit cd5c4bac50
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class NotesController < ApplicationController
when "snippet"
then project.snippets.find(params[:target_id]).notes
when "wall"
then project.common_notes.order("created_at DESC").fresh.limit(10)
then project.common_notes.order("created_at DESC").fresh.limit(50)
when "issue"
then project.issues.find(params[:target_id]).notes.inc_author.order("created_at DESC").limit(20)
when "merge_request"