Skip to content

Commit

Permalink
postgres friendly please
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbristol committed Oct 20, 2008
1 parent ba80970 commit 4a0cf53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/friends/_list.html.erb
Expand Up @@ -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

Expand Down

0 comments on commit 4a0cf53

Please sign in to comment.