diff options
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/associations/join_dependency/join_part.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency/join_part.rb b/activerecord/lib/active_record/associations/join_dependency/join_part.rb index f70e277c76..8024105472 100644 --- a/activerecord/lib/active_record/associations/join_dependency/join_part.rb +++ b/activerecord/lib/active_record/associations/join_dependency/join_part.rb @@ -68,8 +68,9 @@ module ActiveRecord index = 0 length = column_names_with_alias.length + while index < length - column_name,alias_name = column_names_with_alias[index] + column_name, alias_name = column_names_with_alias[index] hash[column_name] = row[alias_name] index += 1 end |