Permalink
Browse files

removing lolinject

  • Loading branch information...
1 parent bfd4022 commit 7a6c715517cef09d14d030b2b30dc419d7a60e3b @tenderlove tenderlove committed Sep 21, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit 7a6c715

Please sign in to comment.