diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-05-09 21:00:45 -0400 |
---|---|---|
committer | Rizwan Reza <rizwanreza@gmail.com> | 2010-05-16 06:47:16 +0430 |
commit | 5de2e0d416b0635fc99655fbfcb24acddf5536e5 (patch) | |
tree | b34c6b5f0ee91966570c3cf3ccf90373886fd6ac /activerecord | |
parent | 24610c9b288b84363b517db33e30b38c8574d9cd (diff) | |
download | rails-5de2e0d416b0635fc99655fbfcb24acddf5536e5.tar.gz rails-5de2e0d416b0635fc99655fbfcb24acddf5536e5.tar.bz2 rails-5de2e0d416b0635fc99655fbfcb24acddf5536e5.zip |
better documentation for dependent option [#4564 state:resolved]
Diffstat (limited to 'activerecord')
-rwxr-xr-x | 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 0a3c7c6a60..9d39a0c49b 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -839,10 +839,11 @@ module ActiveRecord # If set to <tt>:destroy</tt> all the associated objects are destroyed # alongside this object by calling their +destroy+ method. If set to <tt>:delete_all</tt> all associated # objects are deleted *without* calling their +destroy+ method. If set to <tt>:nullify</tt> all associated - # objects' foreign keys are set to +NULL+ *without* calling their +save+ callbacks. *Warning:* This option is ignored when also using - # the <tt>:through</tt> option. - # the <tt>:through</tt> option. If set to <tt>:restrict</tt> - # 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 + # <tt>:restrict</tt> this object cannot be deleted if it has any associated object. + # + # *Warning:* This option is ignored when used with <tt>:through</tt> 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. |