diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-06-01 18:55:55 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-06-01 18:55:55 +0200 |
commit | 260c384bdb539265b31d3937df48e528acb50800 (patch) | |
tree | 6012932fd76e47f10d077fdb60ff440f9fe824c2 /activerecord/lib/active_record/attribute_methods.rb | |
parent | 75f75a8719e8dbe8ce14874ae4bd1eac0eee67ab (diff) | |
parent | 93734629a33591486b76e3b9884ea37650934eef (diff) | |
download | rails-260c384bdb539265b31d3937df48e528acb50800.tar.gz rails-260c384bdb539265b31d3937df48e528acb50800.tar.bz2 rails-260c384bdb539265b31d3937df48e528acb50800.zip |
Merge pull request #15432 from sgrif/sg-coder-type-casting
Don't change values in `@raw_attributes` during serialization
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods.rb')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb index fb6473b7c7..d2a8006069 100644 --- a/activerecord/lib/active_record/attribute_methods.rb +++ b/activerecord/lib/active_record/attribute_methods.rb @@ -289,7 +289,7 @@ module ActiveRecord # Placeholder so it can be overriden when needed by serialization def attributes_for_coder # :nodoc: - attributes + attributes_before_type_cast end # Returns an <tt>#inspect</tt>-like string for the value of the |