From d89d70236177a074b8357b6104248c86c30c2502 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 5 Nov 2010 16:30:38 -0700 Subject: index is not used, so removing it --- activerecord/lib/active_record/associations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 3d754af5b3..680810f031 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1876,7 +1876,7 @@ module ActiveRecord def instantiate(rows) primary_key = join_base.aliased_primary_key - rows.each_with_index do |model, i| + rows.each do |model| primary_id = model[primary_key] unless @base_records_hash[primary_id] @base_records_in_order << (@base_records_hash[primary_id] = join_base.instantiate(model)) -- cgit v1.2.3