Permalink
Browse files

Correct ordering of posts

  • Loading branch information...
1 parent ab00317 commit 236aae25a6cf5d6f144b752d687f0c3b6b33f172 @rjshade committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/post.rb
View
@@ -33,7 +33,7 @@ class Post
has_many :comments, :dependent => :destroy
- scope :latest, descending(:date)
+ scope :latest, ascending(:date)
scope :recent, lambda{|n| latest.limit(n)}
def get_date

0 comments on commit 236aae2

Please sign in to comment.