From 361aaa04ef2f33cb1fe49497c73bc13e6b72addc Mon Sep 17 00:00:00 2001 From: Aliaksey Kandratsenka Date: Tue, 15 Jan 2008 18:52:01 +0200 Subject: [PATCH] Remove old :limit removal code from find_initial, logic is now handled in the preloading and eager loading code. Signed-off-by: Michael Koziarski --- activerecord/lib/active_record/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 8bef5ed2ae..dfc0eac54d 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -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