diff options
author | eileencodes <eileencodes@gmail.com> | 2014-04-03 18:20:28 -0400 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2014-04-06 20:47:36 -0400 |
commit | 9534006c47c9aa564a55de714d1e0c8699fd185a (patch) | |
tree | 99ea555b66565e98eb3052eeaa44b2d295e1c155 /activerecord | |
parent | 5ac58be34580345b7464287ea422c14642b5fd20 (diff) | |
download | rails-9534006c47c9aa564a55de714d1e0c8699fd185a.tar.gz rails-9534006c47c9aa564a55de714d1e0c8699fd185a.tar.bz2 rails-9534006c47c9aa564a55de714d1e0c8699fd185a.zip |
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
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_proxy.rb | 7 |
1 files changed, 1 insertions, 6 deletions
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 <tt>:dependent</tt> - # option. Returns an array with the deleted records. + # option. # # If no <tt>:dependent</tt> option is given, then it will follow the # default strategy. The default strategy is <tt>:nullify</tt>. This @@ -435,11 +435,6 @@ module ActiveRecord # # ] # # person.pets.delete_all - # # => [ - # # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, - # # #<Pet id: 2, name: "Spook", person_id: 1>, - # # #<Pet id: 3, name: "Choo-Choo", person_id: 1> - # # ] # # Pet.find(1, 2, 3) # # => ActiveRecord::RecordNotFound |