diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-11-25 10:52:33 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-11-25 11:07:24 -0700 |
commit | dd986814e7f528916a44f841a02c955a4522307c (patch) | |
tree | e7147e3a5240a2ade86d4e2d9a94c57dbfaaf46a /actionview/lib/action_view | |
parent | d12f40ff336733eca17ec5216b2f6a6cfa35c57c (diff) | |
download | rails-dd986814e7f528916a44f841a02c955a4522307c.tar.gz rails-dd986814e7f528916a44f841a02c955a4522307c.tar.bz2 rails-dd986814e7f528916a44f841a02c955a4522307c.zip |
Setting an association replaces records with the same id in memory
The records weren't being replaced since equality in Active Record is
defined in terms of `id` only. It is reasonable to expect that the
references would be replaced in memory, even if no queries are actually
executed. This change did not appear to affect any other parts of the
code base. I chose not to execute callbacks since we're not actually
modifying the association in a way that will be persisted.
Fixes #17730
Diffstat (limited to 'actionview/lib/action_view')
0 files changed, 0 insertions, 0 deletions