diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2012-09-15 12:00:27 +0400 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2012-09-15 12:00:27 +0400 |
commit | ecaf728774aa5f4232cc17532272408f9a9819b7 (patch) | |
tree | fc40627ccc402f7bcd227a89930548c9663b88f4 /activerecord | |
parent | 00fef0a76c589bd69c1048e8bae7d66e0a8b7457 (diff) | |
download | rails-ecaf728774aa5f4232cc17532272408f9a9819b7.tar.gz rails-ecaf728774aa5f4232cc17532272408f9a9819b7.tar.bz2 rails-ecaf728774aa5f4232cc17532272408f9a9819b7.zip |
Improve documentation about :dependent and callbacks.
Fixes #3458.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index d6b8552e6e..203ddd17c7 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -949,6 +949,11 @@ module ActiveRecord # is done. For more information, see the documentation for this option on the different # specific association types. When no option is given, the behaviour is to do nothing # with the associated records when destroying a record. + # + # Note that <tt>:dependent</tt> is implemented using Rails' callback + # system, which works by processing callbacks in order. Therefore, other + # callbacks declared either before or after the <tt>:depenent</tt> option + # can affect what it does. # # === Delete or destroy? # |