Take the 2008 Git User's Survey and help out! [ hide ]

public
Fork of josh/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/pkondzior/rails.git
Search Repo:
Remove old :limit removal code from find_initial, logic is now handled in 
the preloading and eager loading code.

Signed-off-by: Michael Koziarski <michael@koziarski.com>
Aliaksey Kandratsenka (author)
Tue Jan 15 08:52:01 -0800 2008
NZKoz (committer)
Sun Apr 27 01:01:05 -0700 2008
commit  361aaa04ef2f33cb1fe49497c73bc13e6b72addc
tree    3ab26408c3a116d29a9c4b793d8932f55f53baba
parent  f3fd44f76b64d6c30967a31b91709d27bce41f72
...
1272
1273
1274
1275
 
1276
1277
1278
...
1272
1273
1274
 
1275
1276
1277
1278
0
@@ -1272,7 +1272,7 @@ module ActiveRecord #:nodoc:
0
 
0
       private
0
         def find_initial(options)
0
- options.update(:limit => 1) unless options[:include]
0
+ options.update(:limit => 1)
0
           find_every(options).first
0
         end
0
 

Comments

    No one has commented yet.