method

hash

hash()
public

Delegates to id in order to allow two resources of the same type and id to work with something like:

  [Person.find(1), Person.find(2)] & [Person.find(1), Person.find(4)] # => [Person.find(1)]