Please sign in to comment.
`ActiveRecord::Base#hash` should differ between classes
Prior to this change, we would get collisions if Active Record objects of different classes with the same ID were used as keys of the same hash. It bothers me slightly that we have to allocate inside of this method, but Ruby doesn't provide any way to hash multiple values without allocation
- Loading branch information...
Showing with 5 additions and 1 deletion.