Merge branch 'change-notes-order' of https://github.com/riyad/gitlabhq into riyad-change-notes-order
This commit is contained in:
commit
caeb65b189
32 changed files with 384 additions and 270 deletions
|
@ -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 DESC")
|
||||
scope :fresh, order("created_at ASC, id ASC")
|
||||
scope :inc_author_project, includes(:project, :author)
|
||||
scope :inc_author, includes(:author)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue