diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-05-30 13:06:05 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-06-01 10:55:23 -0600 |
commit | 93734629a33591486b76e3b9884ea37650934eef (patch) | |
tree | dd4dd281a5db237c7e67ac01f1bfc0bbb725f98b /activerecord/test/models/chef.rb | |
parent | a70b9ba62ed323347fe76be47afd80ee60729d9b (diff) | |
download | rails-93734629a33591486b76e3b9884ea37650934eef.tar.gz rails-93734629a33591486b76e3b9884ea37650934eef.tar.bz2 rails-93734629a33591486b76e3b9884ea37650934eef.zip |
Don't change values in `@raw_attributes` during serialization
During `init_with`, the attributes given to the coder will be placed
into `@raw_attributes`. As such, we should read from `@raw_attributes`
when encoding, rather than `@attributes`, which has been type cast.
Diffstat (limited to 'activerecord/test/models/chef.rb')
0 files changed, 0 insertions, 0 deletions