method

hash

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveResource::Base
hash() public

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

[(a = Person.find 1), (b = Person.find 2)] & [(c = Person.find 1), (d = Person.find 4)] # => [a]
Show source
Register or log in to add new notes.