1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

change example on CollectionProxy#delete to accept multiple values

This commit is contained in:
Francesco Rodriguez 2012-05-28 10:41:42 -05:00
parent 95fde2c09b
commit 501d98b812

View file

@ -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>