comments order
This commit is contained in:
parent
a0c6a21be4
commit
eae5a3fd79
@ -28,7 +28,7 @@ class Article < ActiveRecord::Base
|
||||
|
||||
end
|
||||
|
||||
scope :recents, where("enabled = ?",true ).order("published_at DESC")
|
||||
scope :recents, where("enabled = ?",true ).order("published_at ASC")
|
||||
|
||||
scope :between, lambda { |start, stop|
|
||||
after(start).before(stop)
|
||||
|
Loading…
x
Reference in New Issue
Block a user