diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-05 16:30:38 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-05 16:56:50 -0700 |
commit | d89d70236177a074b8357b6104248c86c30c2502 (patch) | |
tree | eb8d8029c3f79267acae7f1f18e435b6fb945ab6 | |
parent | a79e1de90a6062926a8ec11870702923eb691944 (diff) | |
download | rails-d89d70236177a074b8357b6104248c86c30c2502.tar.gz rails-d89d70236177a074b8357b6104248c86c30c2502.tar.bz2 rails-d89d70236177a074b8357b6104248c86c30c2502.zip |
index is not used, so removing it
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |