diff options
author | Xavier Noria <fxn@hashref.com> | 2008-10-17 02:04:50 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2008-10-17 02:04:50 +0200 |
commit | 4ab8c087e778d746f9a3a0b4f8086ca262c5fcad (patch) | |
tree | 1390885a6772a984313c9820720f58fbce81707f /railties/doc/guides/activerecord | |
parent | 2636807dfbec2f0bf68fe3afe5df45eedeb88663 (diff) | |
download | rails-4ab8c087e778d746f9a3a0b4f8086ca262c5fcad.tar.gz rails-4ab8c087e778d746f9a3a0b4f8086ca262c5fcad.tar.bz2 rails-4ab8c087e778d746f9a3a0b4f8086ca262c5fcad.zip |
revised documentation of collection.delete
Diffstat (limited to 'railties/doc/guides/activerecord')
-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+ |