Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

postgres friendly please

  • Loading branch information...
commit 4a0cf534758b1a176feb4b384054ff9eeb2f449c 1 parent ba80970
Steven Bristol authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/views/friends/_list.html.erb
2  app/views/friends/_list.html.erb
View
@@ -2,7 +2,7 @@
profile ||= @profile
type ||= 'friends'
size ||= 20
-list = profile.send(type).find(:all, :limit => size, :order => 'RAND()') rescue []
+list = profile.send(type).find(:all, :limit => size, :order => 'RANDOM()') rescue []
total = profile.send(type).count
with_friending ||= false
Please sign in to comment.
Something went wrong with that request. Please try again.