diff options
-rw-r--r-- | activerecord/lib/active_record/association_preload.rb | 2 |
1 files changed, 0 insertions, 2 deletions
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] |