Revert "#1938: Add order:random using order by random()"

This reverts commit 62df4b115a.
This commit is contained in:
r888888888
2013-09-18 18:03:05 -07:00
parent 7427833de6
commit d46dc773bb

View File

@@ -339,9 +339,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 "random"
relation = relation.order("random()")
else
relation = relation.order("posts.id DESC")
end