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:
parent
95fde2c09b
commit
501d98b812
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue