GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A Rails plugin that allows quick and easy fetching of random records, or records in random order.
Homepage: http://daniel.collectiveidea.com/blog/tags/random_finders
Clone URL: git://github.com/collectiveidea/random_finders.git
Click here to lend your support to: random_finders and make a donation at www.pledgie.com !
Fixed silly typo, exposing lax test coverage [mark van holstyn]
Wed Jun 06 11:47:01 -0700 2007
commit  d5c6975eba945bc02d513b13a9c8f48f9153b7c6
tree    b7296f11dd902a2806072c556bbc642a60a5eac4
parent  c39cb222789479a56e664ff0b9499128adb13409
...
6
7
8
9
 
10
11
12
...
6
7
8
 
9
10
11
12
0
@@ -6,7 +6,7 @@ module ActiveRecord
0
       scoped_order = scope[:order] if scope
0
       
0
       order = connection.random_function if order == :random
0
- scoped_order = connecction.random_function if scoped_order == :random
0
+ scoped_order = connection.random_function if scoped_order == :random
0
       
0
       if order
0
         sql << " ORDER BY #{order}"

Comments

    No one has commented yet.