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
def find_initial(options)
options.update(:limit => 1) unless options[:include]
options.update(:limit => 1)
find_every(options).first
end