diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-24 12:11:51 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-24 12:11:51 -0700 |
commit | 4e3eca480974fdad3d4dae475959b3d2638e2b33 (patch) | |
tree | c0e00cf34d93953e0a6e600608b91ac98379ff07 /activerecord/lib | |
parent | 4e7fa91332ea08aa29e69e905413abba78d93d78 (diff) | |
parent | 8c8d34fa55b471858b7466789830ff936c550a8f (diff) | |
download | rails-4e3eca480974fdad3d4dae475959b3d2638e2b33.tar.gz rails-4e3eca480974fdad3d4dae475959b3d2638e2b33.tar.bz2 rails-4e3eca480974fdad3d4dae475959b3d2638e2b33.zip |
Merge pull request #10330 from kennyj/fix_10067
Serialized column should not be wrapped twice. Fix #10067.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/persistence.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index 42cece3ad0..59f8e90e7a 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -51,7 +51,7 @@ module ActiveRecord # how this "single-table" inheritance mapping is implemented. def instantiate(record, column_types = {}) klass = discriminate_class_for_record(record) - column_types = klass.decorate_columns(column_types) + column_types = klass.decorate_columns(column_types.dup) klass.allocate.init_with('attributes' => record, 'column_types' => column_types) end |