diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-28 10:41:42 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-28 10:41:42 -0500 |
commit | 501d98b812202d87c11a68d0d78d26f6befd47a7 (patch) | |
tree | f02f1f03e9f6ad35e0389d1d1eb5b4c0ccfbceaf | |
parent | 95fde2c09b1261de84828d19cf9d895120c5b543 (diff) | |
download | rails-501d98b812202d87c11a68d0d78d26f6befd47a7.tar.gz rails-501d98b812202d87c11a68d0d78d26f6befd47a7.tar.bz2 rails-501d98b812202d87c11a68d0d78d26f6befd47a7.zip |
change example on CollectionProxy#delete to accept multiple values
-rw-r--r-- | activerecord/lib/active_record/associations/collection_proxy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index 294aa63f75..f6183f8527 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -520,7 +520,7 @@ module ActiveRecord # # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # # ] # - # person.pets.delete([Pet.find(1), Pet.find(3)]) + # person.pets.delete(Pet.find(1), Pet.find(3)) # # => [ # # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # # #<Pet id: 3, name: "Choo-Choo", person_id: 1> |