From d13627d532f23b248a9141511c16abdf5746a486 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Fri, 13 Jan 2012 23:42:07 +0000 Subject: Revert "Deprecate implicit eager loading. Closes #950." This reverts commit c99d507fccca2e9e4d12e49b4387e007c5481ae9. --- activerecord/lib/active_record/associations/preloader/association.rb | 1 - .../lib/active_record/associations/preloader/through_association.rb | 1 - 2 files changed, 2 deletions(-) (limited to 'activerecord/lib/active_record/associations/preloader') diff --git a/activerecord/lib/active_record/associations/preloader/association.rb b/activerecord/lib/active_record/associations/preloader/association.rb index 298decb0f1..779f8164cc 100644 --- a/activerecord/lib/active_record/associations/preloader/association.rb +++ b/activerecord/lib/active_record/associations/preloader/association.rb @@ -100,7 +100,6 @@ module ActiveRecord scope = scope.select(preload_options[:select] || options[:select] || table[Arel.star]) scope = scope.includes(preload_options[:include] || options[:include]) - scope = scope.eager_load(preload_options[:eager_load] || options[:eager_load]) if options[:as] scope = scope.where( diff --git a/activerecord/lib/active_record/associations/preloader/through_association.rb b/activerecord/lib/active_record/associations/preloader/through_association.rb index 97898c53ae..ad6374d09a 100644 --- a/activerecord/lib/active_record/associations/preloader/through_association.rb +++ b/activerecord/lib/active_record/associations/preloader/through_association.rb @@ -53,7 +53,6 @@ module ActiveRecord else if options[:conditions] through_options[:include] = options[:include] || options[:source] - through_options[:eager_load] = options[:eager_load] || options[:source] through_options[:conditions] = options[:conditions] end -- cgit v1.2.3