aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-06-06 15:08:28 +0200
committerYves Senn <yves.senn@gmail.com>2014-06-06 15:08:28 +0200
commit69274ce5163559419cf50ec2524103b93c12e2e9 (patch)
tree0a82fe6b693e5aa51a94308dea75343fe6eaeec2 /activerecord/lib
parent485dab41c4ff7de392ffba132fbcbff49e6fe9ef (diff)
downloadrails-69274ce5163559419cf50ec2524103b93c12e2e9.tar.gz
rails-69274ce5163559419cf50ec2524103b93c12e2e9.tar.bz2
rails-69274ce5163559419cf50ec2524103b93c12e2e9.zip
serialized Type should delegate `type_cast_for_write` to underlying Type
This adds a regression test for #14411, which was fixed by #15503. Closes #14411 Closes #14595
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/type/serialized.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/type/serialized.rb b/activerecord/lib/active_record/type/serialized.rb
index 78a6d31e26..94d9d9a549 100644
--- a/activerecord/lib/active_record/type/serialized.rb
+++ b/activerecord/lib/active_record/type/serialized.rb
@@ -20,7 +20,7 @@ module ActiveRecord
def type_cast_for_write(value)
return if value.nil?
unless is_default_value?(value)
- coder.dump(value)
+ super coder.dump(value)
end
end