• S
    `ActiveRecord::Base#hash` should differ between classes · c8be4574
    Sean Griffin 提交于
    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
    c8be4574
core.rb 18.7 KB