summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-09-14 17:01:34 +0200
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-09-14 21:41:57 +0200
commit07eec9c66a910b5a808852f498e1dc9c88b701d2 (patch)
treec2861d2d33484599ba022271e85e8c936bc9d95f /app/models/note.rb
parent7563abbe49fc16280877be89342d552e0609d57c (diff)
downloadgitlab-ce-07eec9c66a910b5a808852f498e1dc9c88b701d2.tar.gz
Update Notes JS for reversed notes
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 9aad8949f3c..34edb94edca 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -36,7 +36,7 @@ class Note < ActiveRecord::Base
scope :today, where("created_at >= :date", date: Date.today)
scope :last_week, where("created_at >= :date", date: (Date.today - 7.days))
scope :since, lambda { |day| where("created_at >= :date", date: (day)) }
- scope :fresh, order("created_at ASC")
+ scope :fresh, order("created_at ASC, id ASC")
scope :inc_author_project, includes(:project, :author)
scope :inc_author, includes(:author)