1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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>
This commit is contained in:
Aliaksey Kandratsenka 2008-01-15 18:52:01 +02:00 committed by Michael Koziarski
parent f3fd44f76b
commit 361aaa04ef

View file

@ -1272,7 +1272,7 @@ module ActiveRecord #:nodoc:
private private
def find_initial(options) def find_initial(options)
options.update(:limit => 1) unless options[:include] options.update(:limit => 1)
find_every(options).first find_every(options).first
end end