diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/doc/guides/activerecord/association_basics.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/doc/guides/activerecord/association_basics.txt b/railties/doc/guides/activerecord/association_basics.txt index df89cfb531..695b834652 100644 --- a/railties/doc/guides/activerecord/association_basics.txt +++ b/railties/doc/guides/activerecord/association_basics.txt @@ -1085,7 +1085,8 @@ The +_collection_.delete+ method removes one or more objects from the collection @customer.orders.delete(@order1) ------------------------------------------------------- -WARNING: The +_collection_.delete+ method will destroy the deleted object if they are declared as +belongs_to+ and are dependent on this model. +WARNING: Objects will be in addition destroyed if they're associated with +:dependent => :destroy+, and deleted if they're associated with +:dependent => :delete_all+. + ===== +_collection_=objects+ |