From 91bf8593b62fe118461d5b1211833ba4df3cc20c Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Sun, 9 May 2010 21:00:45 -0400 Subject: [PATCH] better documentation for dependent option [#4564 state:resolved] --- activerecord/lib/active_record/associations.rb | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 0a3c7c6..63f3157 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -839,10 +839,11 @@ module ActiveRecord # If set to :destroy all the associated objects are destroyed # alongside this object by calling their +destroy+ method. If set to :delete_all all associated # objects are deleted *without* calling their +destroy+ method. If set to :nullify all associated - # objects' foreign keys are set to +NULL+ *without* calling their +save+ callbacks. *Warning:* This option is ignored when also using - # the :through option. - # the :through option. If set to :restrict - # this object cannot be deleted if it has any associated object. + # objects' foreign keys are set to +NULL+ *without* calling their +save+ callbacks. If set to + # :restrict this object cannot be deleted if it has any associated object. + # + # *Warning:* This option is ignored when used with :through option. + # # [:finder_sql] # Specify a complete SQL statement to fetch the association. This is a good way to go for complex # associations that depend on multiple tables. Note: When this option is used, +find_in_collection+ is _not_ added. -- 1.6.5.2