method

hash

Importance_1
v3.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::Base
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) ] # => [ Person.find(1) ]
Show source
Register or log in to add new notes.