From cd5c4bac5042c5469dcdf7e7b2f768d3c6fd7088 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 27 Feb 2012 20:34:55 +0200 Subject: [PATCH] notes count for wall --- app/controllers/notes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index 52cfb898..a2638d95 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -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"