aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/explain_subscriber.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-11-25 10:52:33 -0700
committerSean Griffin <sean@thoughtbot.com>2014-11-25 11:07:24 -0700
commitdd986814e7f528916a44f841a02c955a4522307c (patch)
treee7147e3a5240a2ade86d4e2d9a94c57dbfaaf46a /activerecord/lib/active_record/explain_subscriber.rb
parentd12f40ff336733eca17ec5216b2f6a6cfa35c57c (diff)
downloadrails-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 'activerecord/lib/active_record/explain_subscriber.rb')
0 files changed, 0 insertions, 0 deletions