diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-06-02 11:32:05 -0400 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2016-06-02 11:34:48 -0400 |
commit | c587b636648394e33292ba8ba47d22bdad7446c3 (patch) | |
tree | dbd607c0e8ea3df407dc1dfd828843a863783e93 /Rakefile | |
parent | b604dd0b81c44c3b4605f31e8f4b914fa7686b1a (diff) | |
download | rails-c587b636648394e33292ba8ba47d22bdad7446c3.tar.gz rails-c587b636648394e33292ba8ba47d22bdad7446c3.tar.bz2 rails-c587b636648394e33292ba8ba47d22bdad7446c3.zip |
Ensure that records with unselected fields can be updated
As part of refactoring mutation detection to be more performant, we
introduced the concept of `original_value` to `Attribute`. This was not
overridden in `Attribute::Uninitialized` however, so assigning ot an
uninitialized value and calling `.changed?` would raise
`NotImplementedError`.
We are using a sentinel value rather than checking the result of
`original_attribute.initialized?` in `changed?` because `original_value`
might go through more than one node in the tree.
Fixes #25228
Diffstat (limited to 'Rakefile')
0 files changed, 0 insertions, 0 deletions