From 9534006c47c9aa564a55de714d1e0c8699fd185a Mon Sep 17 00:00:00 2001 From: eileencodes Date: Thu, 3 Apr 2014 18:20:28 -0400 Subject: fix CollectionProxy delete_all documentation This method no longer returns an array of all records that have been removed. Correct documentation to reflect this change. See issue 14546 --- activerecord/lib/active_record/associations/collection_proxy.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index 5b71ed163e..84c8cfe72b 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -357,7 +357,7 @@ module ActiveRecord # Deletes all the records from the collection. For +has_many+ associations, # the deletion is done according to the strategy specified by the :dependent - # option. Returns an array with the deleted records. + # option. # # If no :dependent option is given, then it will follow the # default strategy. The default strategy is :nullify. This @@ -435,11 +435,6 @@ module ActiveRecord # # ] # # person.pets.delete_all - # # => [ - # # #, - # # #, - # # # - # # ] # # Pet.find(1, 2, 3) # # => ActiveRecord::RecordNotFound -- cgit v1.2.3