diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-11-09 13:26:11 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-11-10 00:25:57 +0530 |
commit | f511eac2c1c6921368f1d8c2a1af1d3319204232 (patch) | |
tree | 2e44cd808f968de51cfb972960bbfb9413c11aac | |
parent | 3cc64df92eef6f1aec240851474f041b27d80ff6 (diff) | |
download | rails-f511eac2c1c6921368f1d8c2a1af1d3319204232.tar.gz rails-f511eac2c1c6921368f1d8c2a1af1d3319204232.tar.bz2 rails-f511eac2c1c6921368f1d8c2a1af1d3319204232.zip |
Also dup `column_types` in AR::Result `initialize_copy`
-rw-r--r-- | activerecord/lib/active_record/result.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/result.rb b/activerecord/lib/active_record/result.rb index 1dc3bf3f12..469451e2f4 100644 --- a/activerecord/lib/active_record/result.rb +++ b/activerecord/lib/active_record/result.rb @@ -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 |