aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-28 10:41:42 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-28 10:41:42 -0500
commit501d98b812202d87c11a68d0d78d26f6befd47a7 (patch)
treef02f1f03e9f6ad35e0389d1d1eb5b4c0ccfbceaf
parent95fde2c09b1261de84828d19cf9d895120c5b543 (diff)
downloadrails-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.rb2
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>