removing lolinject

This commit is contained in:
Aaron Patterson 2010-09-21 14:42:42 -07:00
parent b7e4a97ab5
commit 88b1d51f82
1 changed files with 1 additions and 1 deletions

View File

@ -2046,7 +2046,7 @@ module ActiveRecord
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)