summaryrefslogtreecommitdiff
path: root/app/controllers/notes_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-02-27 19:05:27 +0200
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-02-27 19:05:27 +0200
commit1e689bfba39525ead225eaf611948cfbe8ac34cf (patch)
tree7d8dcc45056b062971eccf51131552c3a266b9aa /app/controllers/notes_controller.rb
parentf0f14c8eaba69ebddd766498a9d0b0e79becd633 (diff)
downloadgitlab-ce-1e689bfba39525ead225eaf611948cfbe8ac34cf.tar.gz
fixed notes logic
Diffstat (limited to 'app/controllers/notes_controller.rb')
-rw-r--r--app/controllers/notes_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb
index ed3fd7e82dc..fe38d74dde6 100644
--- a/app/controllers/notes_controller.rb
+++ b/app/controllers/notes_controller.rb
@@ -16,7 +16,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(60)
+ then project.common_notes.order("created_at DESC").fresh.limit(10)
when "issue"
then project.issues.find(params[:target_id]).notes.inc_author.order("created_at DESC").limit(20)
when "merge_request"