aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-06-01 18:55:55 +0200
committerYves Senn <yves.senn@gmail.com>2014-06-01 18:55:55 +0200
commit260c384bdb539265b31d3937df48e528acb50800 (patch)
tree6012932fd76e47f10d077fdb60ff440f9fe824c2 /activerecord/lib/active_record/attribute_methods.rb
parent75f75a8719e8dbe8ce14874ae4bd1eac0eee67ab (diff)
parent93734629a33591486b76e3b9884ea37650934eef (diff)
downloadrails-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.rb2
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