From 21972c35e7bb7f422cb4486e3391e6656e30eaf4 Mon Sep 17 00:00:00 2001 From: Shinpei Noda Date: Tue, 27 Aug 2019 11:24:50 +0900 Subject: [PATCH] Fix rdoc of ActiveRecord::Associations::CollectionProxy#replace [ci skip] --- activerecord/lib/active_record/associations/collection_proxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index 404a7c02ba..f0b75306e9 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -373,7 +373,7 @@ def create!(attributes = {}, &block) # person.pets # # => [#] # - # other_pets = [Pet.new(name: 'Puff', group: 'celebrities'] + # other_pets = [Pet.new(name: 'Puff', group: 'celebrities')] # # person.pets.replace(other_pets) # -- GitLab