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

Also dup column_types in AR::Result initialize_copy

This commit is contained in:
Vipul A M 2013-11-09 13:26:11 +05:30
parent 3cc64df92e
commit f511eac2c1

View file

@ -83,9 +83,10 @@ module ActiveRecord
end
def initialize_copy(other)
@columns = columns.dup
@rows = rows.dup
@hash_rows = nil
@columns = columns.dup
@rows = rows.dup
@column_types = column_types.dup
@hash_rows = nil
end
private