diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-10-26 14:00:20 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-26 14:00:20 +0530 |
commit | ec4aaccb1b9fdc60aa6ab5bb417e915165f772fa (patch) | |
tree | 9597397b0ba9b8da3cb42c47cb2fda900c195196 /guides | |
parent | 634741d9721eb938c8bce38c109023178268e43d (diff) | |
parent | ae83b01b1988d85e2370a53b8c41f5be1a15e946 (diff) | |
download | rails-ec4aaccb1b9fdc60aa6ab5bb417e915165f772fa.tar.gz rails-ec4aaccb1b9fdc60aa6ab5bb417e915165f772fa.tar.bz2 rails-ec4aaccb1b9fdc60aa6ab5bb417e915165f772fa.zip |
Merge pull request #26896 from j-dexx/update_habtm_docs
Update HABTM documentation in guides [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/association_basics.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md index 3837cda553..03d3daecc8 100644 --- a/guides/source/association_basics.md +++ b/guides/source/association_basics.md @@ -1994,11 +1994,9 @@ The `collection.delete` method removes one or more objects from the collection b @part.assemblies.delete(@assembly1) ``` -WARNING: This does not trigger callbacks on the join records. - ##### `collection.destroy(object, ...)` -The `collection.destroy` method removes one or more objects from the collection by running `destroy` on each record in the join table, including running callbacks. This does not destroy the objects. +The `collection.destroy` method removes one or more objects from the collection by deleting records in the join table. This does not destroy the objects. ```ruby @part.assemblies.destroy(@assembly1) |