提交 21972c35 编写于 作者: S Shinpei Noda

Fix rdoc of ActiveRecord::Associations::CollectionProxy#replace [ci skip]

上级 24f1f822
......@@ -373,7 +373,7 @@ def create!(attributes = {}, &block)
# 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)
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册