Skip to content
Browse files

removing lolinject

  • Loading branch information...
1 parent b7e4a97 commit 88b1d51f825ec7369b2cc5f5004f662dd80a6057 @tenderlove tenderlove committed Sep 21, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations.rb
View
2 activerecord/lib/active_record/associations.rb
@@ -2046,7 +2046,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 88b1d51

Please sign in to comment.
Something went wrong with that request. Please try again.