diff options
author | Arthur Nogueira Neves <arthurnn@gmail.com> | 2014-04-06 23:00:51 -0400 |
---|---|---|
committer | Arthur Nogueira Neves <arthurnn@gmail.com> | 2014-04-06 23:00:51 -0400 |
commit | 39a54c648dfed1599479e33766d2e0c96b19654d (patch) | |
tree | 99ea555b66565e98eb3052eeaa44b2d295e1c155 /activerecord | |
parent | 5ac58be34580345b7464287ea422c14642b5fd20 (diff) | |
parent | 9534006c47c9aa564a55de714d1e0c8699fd185a (diff) | |
download | rails-39a54c648dfed1599479e33766d2e0c96b19654d.tar.gz rails-39a54c648dfed1599479e33766d2e0c96b19654d.tar.bz2 rails-39a54c648dfed1599479e33766d2e0c96b19654d.zip |
Merge pull request #14626 from eileencodes/fix_incorrect_collection_proxy_delete_all_documentation
fix CollectionProxy delete_all documentation
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 |