diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index 404a7c02baab5ed999ee208cfb965cfe9bcf0583..f0b75306e959e948f2831659ece3e9a9a6a6c692 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) #