comments order

This commit is contained in:
Nicolas Bally 2012-07-22 18:35:10 +02:00
parent a0c6a21be4
commit eae5a3fd79

View File

@ -28,7 +28,7 @@ class Article < ActiveRecord::Base
end end
scope :recents, where("enabled = ?",true ).order("published_at DESC") scope :recents, where("enabled = ?",true ).order("published_at ASC")
scope :between, lambda { |start, stop| scope :between, lambda { |start, stop|
after(start).before(stop) after(start).before(stop)