aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2007-05-06 05:14:37 +0000
committerMarcel Molina <marcel@vernix.org>2007-05-06 05:14:37 +0000
commit6ad9d1dbde26baf6870b87d23381c601fcdee977 (patch)
tree09207c7e37578bf2053c30638ff937f65c073be5
parentee614d6319d3704a2f92e262a0270812761a8e4e (diff)
downloadrails-6ad9d1dbde26baf6870b87d23381c601fcdee977.tar.gz
rails-6ad9d1dbde26baf6870b87d23381c601fcdee977.tar.bz2
rails-6ad9d1dbde26baf6870b87d23381c601fcdee977.zip
Update documentation for :dependent declaration so that it explicitly uses the non-deprecated API. Closes #8069. [danger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6686 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activerecord/CHANGELOG2
-rwxr-xr-xactiverecord/lib/active_record/associations.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 0c7e5c9fd2..55d2212a8a 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Update documentation for :dependent declaration so that it explicitly uses the non-deprecated API. [danger]
+
* Add documentation caveat about when to use count_by_sql. [fearoffish]
* Enhance documentation for increment_counter and decrement_counter. [fearoffish]
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 5393c3f91f..f7c8e1d22f 100755
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -530,7 +530,7 @@ module ActiveRecord
# * <tt>collection_singular_ids</tt> - returns an array of the associated objects ids
# * <tt>collection_singular_ids=ids</tt> - replace the collection by the objects identified by the primary keys in +ids+
# * <tt>collection.clear</tt> - removes every object from the collection. This destroys the associated objects if they
- # are <tt>:dependent</tt>, deletes them directly from the database if they are <tt>:dependent => :delete_all</tt>,
+ # are associated with <tt>:dependent => :destroy</tt>, deletes them directly from the database if <tt>:dependent => :delete_all</tt>,
# and sets their foreign keys to NULL otherwise.
# * <tt>collection.empty?</tt> - returns true if there are no associated objects.
# * <tt>collection.size</tt> - returns the number of associated objects.