Skip to content

Commit

Permalink
make the example code a bit more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Jan 29, 2011
1 parent 8f24471 commit 78ecb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activeresource/lib/active_resource/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78ecb24

Please sign in to comment.