Skip to content
This repository
Browse code

make the example code a bit more accurate

  • Loading branch information...
commit 78ecb2485e63ec96a2bd17dc19deed05632cd981 1 parent 8f24471
Akira Matsuda authored January 29, 2011
2  activeresource/lib/active_resource/base.rb
@@ -1095,7 +1095,7 @@ def eql?(other)
1095 1095
     end
1096 1096
 
1097 1097
     # Delegates to id in order to allow two resources of the same type and \id to work with something like:
1098  
-    #   [Person.find(1), Person.find(2)] & [Person.find(1), Person.find(4)] # => [Person.find(1)]
  1098
+    #   [(a = Person.find 1), (b = Person.find 2)] & [(c = Person.find 1), (d = Person.find 4)] # => [a]
1099 1099
     def hash
1100 1100
       id.hash
1101 1101
     end

0 notes on commit 78ecb24

Please sign in to comment.
Something went wrong with that request. Please try again.