mirror of https://github.com/rails/rails
removing lolinject
This commit is contained in:
parent
b7e4a97ab5
commit
88b1d51f82
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue