Permalink
Browse files

make the example code a bit more accurate

  • Loading branch information...
1 parent 8f24471 commit 78ecb2485e63ec96a2bd17dc19deed05632cd981 @amatsuda amatsuda committed Jan 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activeresource/lib/active_resource/base.rb
View
2 activeresource/lib/active_resource/base.rb
@@ -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

0 comments on commit 78ecb24

Please sign in to comment.