make the example code a bit more accurate

This commit is contained in:
Akira Matsuda 2011-01-29 09:02:54 +09:00
parent 8f24471989
commit 78ecb2485e

@ -1095,7 +1095,7 @@ def eql?(other)
end
# 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)]
# [(a = Person.find 1), (b = Person.find 2)] & [(c = Person.find 1), (d = Person.find 4)] # => [a]
def hash
id.hash
end