Permalink
Browse files

Merge pull request #14626 from eileencodes/fix_incorrect_collection_p…

…roxy_delete_all_documentation

fix CollectionProxy delete_all documentation
  • Loading branch information...
arthurnn committed Apr 7, 2014
2 parents 5ac58be + 9534006 commit 39a54c648dfed1599479e33766d2e0c96b19654d
Showing with 1 addition and 6 deletions.
  1. +1 −6 activerecord/lib/active_record/associations/collection_proxy.rb
@@ -357,7 +357,7 @@ def replace(other_array)
# 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 @@ def replace(other_array)
# # ]
#
# 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

0 comments on commit 39a54c6

Please sign in to comment.