diff options
author | Akira Matsuda <ronnie@dio.jp> | 2011-01-29 09:02:54 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2011-01-29 09:02:54 +0900 |
commit | 78ecb2485e63ec96a2bd17dc19deed05632cd981 (patch) | |
tree | 8d8caa64d2b2ae10ecb06ff2064b867e430971db /activeresource | |
parent | 8f244719893e9ff28e6842606f076cdd0de95239 (diff) | |
download | rails-78ecb2485e63ec96a2bd17dc19deed05632cd981.tar.gz rails-78ecb2485e63ec96a2bd17dc19deed05632cd981.tar.bz2 rails-78ecb2485e63ec96a2bd17dc19deed05632cd981.zip |
make the example code a bit more accurate
Diffstat (limited to 'activeresource')
-rw-r--r-- | activeresource/lib/active_resource/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb index 66faeb93fb..daa8962929 100644 --- a/activeresource/lib/active_resource/base.rb +++ b/activeresource/lib/active_resource/base.rb @@ -1095,7 +1095,7 @@ module ActiveResource 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 |