1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

AR internals expect a normal hash, otherwise there are serialization incompatibilities

This commit is contained in:
Aaron Patterson 2011-01-05 13:50:08 -08:00
parent 64c82f9ec6
commit 9731c862ec

View file

@ -23,7 +23,7 @@ module ActiveRecord
private
def hash_rows
@hash_rows ||= @rows.map { |row|
ActiveSupport::OrderedHash[@columns.zip(row)]
Hash[@columns.zip(row)]
}
end
end