diff options
author | Aliaksey Kandratsenka <alekseyk@nettoo.com> | 2008-01-15 18:52:01 +0200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-04-27 20:01:05 +1200 |
commit | 361aaa04ef2f33cb1fe49497c73bc13e6b72addc (patch) | |
tree | 3ab26408c3a116d29a9c4b793d8932f55f53baba /activerecord | |
parent | f3fd44f76b64d6c30967a31b91709d27bce41f72 (diff) | |
download | rails-361aaa04ef2f33cb1fe49497c73bc13e6b72addc.tar.gz rails-361aaa04ef2f33cb1fe49497c73bc13e6b72addc.tar.bz2 rails-361aaa04ef2f33cb1fe49497c73bc13e6b72addc.zip |
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>
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |