Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removing lolinject

  • Loading branch information...
commit 7a6c715517cef09d14d030b2b30dc419d7a60e3b 1 parent bfd4022
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/associations.rb
View
2  activerecord/lib/active_record/associations.rb
@@ -2049,7 +2049,7 @@ def column_names_with_alias
end
def extract_record(row)
- column_names_with_alias.inject({}){|record, (cn, an)| record[cn] = row[an]; record}
+ Hash[column_names_with_alias.map{|cn, an| [cn, row[an]]}]
end
def record_id(row)
Please sign in to comment.
Something went wrong with that request. Please try again.