hash()
public
Delegates to id in order to allow two records of the same type and id to
work with something like:
[ Person.find(1), Person.find(2), Person.find(3) ] & [ Person.find(1), Person.find(4) ]
# File activerecord/lib/active_record/core.rb, line 392
def hash
if id
id.hash
else
super
end
end