From ea1477fb6d000073c340751c62c3d4d305e4d77f Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Thu, 17 May 2012 15:05:39 -0500 Subject: fix CollectionAssociation#replace docs --- .../lib/active_record/associations/collection_association.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/associations/collection_association.rb b/activerecord/lib/active_record/associations/collection_association.rb index 90899b2078..19ca63d8b8 100644 --- a/activerecord/lib/active_record/associations/collection_association.rb +++ b/activerecord/lib/active_record/associations/collection_association.rb @@ -306,14 +306,14 @@ module ActiveRecord # end # # person.pets - # # => [ #, # ] + # # => [#] # - # other_pets = [Pet.new(name: 'GorbyPuff', type: 'celibrity')] + # other_pets = [Pet.new(name: 'GorbyPuff', group: 'celebrities'] # # person.pets.replace(other_pets) # # person.pets - # # => [ # ] + # # => [#] # # If the supplied array has an incorrect association type, it raises # an ActiveRecord::AssociationTypeMismatch error: -- cgit v1.2.3