module ActiveRecord::Core
def hash
Delegates to id in order to allow two records of the same type and id to work with something like:
def hash id = self.id if id self.class.hash ^ id.hash else super end end
def hash id = self.id if id self.class.hash ^ id.hash else super end end