This commit is contained in:
albert
2013-01-24 17:52:27 -05:00
parent 9f567b9c82
commit ba7ac2fdba

View File

@@ -231,9 +231,6 @@ class PostQueryBuilder
when "rank"
relation = relation.order("log(3, posts.score) + (extract(epoch from posts.created_at) - extract(epoch from timestamp '2005-05-24')) / 45000 DESC")
when nil
relation = relation.order("posts.id DESC")
else
relation = relation.where("false")