From 6ad9d1dbde26baf6870b87d23381c601fcdee977 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Sun, 6 May 2007 05:14:37 +0000 Subject: 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 --- activerecord/lib/active_record/associations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') 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 # * collection_singular_ids - returns an array of the associated objects ids # * collection_singular_ids=ids - replace the collection by the objects identified by the primary keys in +ids+ # * collection.clear - removes every object from the collection. This destroys the associated objects if they - # are :dependent, deletes them directly from the database if they are :dependent => :delete_all, + # are associated with :dependent => :destroy, deletes them directly from the database if :dependent => :delete_all, # and sets their foreign keys to NULL otherwise. # * collection.empty? - returns true if there are no associated objects. # * collection.size - returns the number of associated objects. -- cgit v1.2.3