Permalink
Browse files

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
  • Loading branch information...
Marcel Molina
Marcel Molina committed May 6, 2007
1 parent ee614d6 commit 6ad9d1dbde26baf6870b87d23381c601fcdee977
Showing with 3 additions and 1 deletion.
  1. +2 −0 activerecord/CHANGELOG
  2. +1 −1 activerecord/lib/active_record/associations.rb
View
@@ -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]
@@ -530,7 +530,7 @@ module ClassMethods
# * <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.

0 comments on commit 6ad9d1d

Please sign in to comment.