mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
d849f42b4e
To me it seems like this should only be the case if `autosave: true` is set on the association. However, when implemented that way, it caused issues with has many associations, where we have explicit tests stating that child records are updated when the parent is new, even if autosave is not set (presumably to update the parent id, but other changed attributes would be persisted as well). It's quirky, but at least we should be consistently quirky. This constitutes a minor but subtle change in behavior, and therefore should not be backported to 4.2 and earlier. Fixes #19782 |
||
---|---|---|
.. | ||
active_record | ||
rails/generators | ||
active_record.rb |