Maybe @sgrif knows: under what circumstances in Active Record are you not guaranteed reference equality in associated objects?
-
-
Replying to @DaveShah
Can you be more specific? You mean `parent.children.first.parent`?
1 reply 0 retweets 0 likes -
Replying to @sgrif
Was thinking something like this:pic.twitter.com/1pdDi02Six
1 reply 0 retweets 0 likes -
Replying to @DaveShah
Uh... You're calling `.new`. That would never have reference equality to any other object
1 reply 0 retweets 0 likes -
Replying to @sgrif
That was actually a typo! Sorry. Replace new with .find in that example (facepalms)
3 replies 0 retweets 0 likes
Replying to @DaveShah
You will find that `arbitrary_attribute_before_type_cast` is referentially equal if you are using query caching
10:35 AM - 21 Jul 2017
from Ottawa - Gatineau
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.