From 6c998a79c8d9f4458d8a8b940a6478d6b55959a0 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sat, 23 Oct 2010 20:19:13 -0700 Subject: removing dead code --- activerecord/lib/active_record/association_preload.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'activerecord/lib/active_record/association_preload.rb') diff --git a/activerecord/lib/active_record/association_preload.rb b/activerecord/lib/active_record/association_preload.rb index e6b367790b..4f0684d753 100644 --- a/activerecord/lib/active_record/association_preload.rb +++ b/activerecord/lib/active_record/association_preload.rb @@ -256,8 +256,6 @@ module ActiveRecord end def preload_through_records(records, reflection, through_association) - through_reflection = reflections[through_association] - through_records = [] if reflection.options[:source_type] interface = reflection.source_reflection.options[:foreign_type] -- cgit v1.2.3