aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/finder_respond_to_test.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-05-31 11:35:46 -0400
committerSean Griffin <sean@seantheprogrammer.com>2016-05-31 11:38:10 -0400
commitc8be4574a2a35c896560ff58b26111ad6dd9d60f (patch)
tree86cb1cab0a6f4bf2b4e49bf28aec76340634aa86 /activerecord/test/cases/finder_respond_to_test.rb
parent81251c6d99eda71d8c8d748cfd3710242aece142 (diff)
downloadrails-c8be4574a2a35c896560ff58b26111ad6dd9d60f.tar.gz
rails-c8be4574a2a35c896560ff58b26111ad6dd9d60f.tar.bz2
rails-c8be4574a2a35c896560ff58b26111ad6dd9d60f.zip
`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
Diffstat (limited to 'activerecord/test/cases/finder_respond_to_test.rb')
0 files changed, 0 insertions, 0 deletions