mirror of https://github.com/rails/rails
Fix rdoc of ActiveRecord::Associations::CollectionProxy#replace [ci skip]
This commit is contained in:
parent
24f1f822e3
commit
21972c35e7
|
@ -373,7 +373,7 @@ module ActiveRecord
|
|||
# person.pets
|
||||
# # => [#<Pet id: 1, name: "Gorby", group: "cats", person_id: 1>]
|
||||
#
|
||||
# other_pets = [Pet.new(name: 'Puff', group: 'celebrities']
|
||||
# other_pets = [Pet.new(name: 'Puff', group: 'celebrities')]
|
||||
#
|
||||
# person.pets.replace(other_pets)
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue