rails--rails/activerecord/lib
Sean Griffin c587b63664 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
2016-06-02 11:34:48 -04:00
..
active_record Ensure that records with unselected fields can be updated 2016-06-02 11:34:48 -04:00
rails/generators
active_record.rb