aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2012-09-15 12:00:27 +0400
committerSteve Klabnik <steve@steveklabnik.com>2012-09-15 12:00:27 +0400
commitecaf728774aa5f4232cc17532272408f9a9819b7 (patch)
treefc40627ccc402f7bcd227a89930548c9663b88f4 /activerecord/lib
parent00fef0a76c589bd69c1048e8bae7d66e0a8b7457 (diff)
downloadrails-ecaf728774aa5f4232cc17532272408f9a9819b7.tar.gz
rails-ecaf728774aa5f4232cc17532272408f9a9819b7.tar.bz2
rails-ecaf728774aa5f4232cc17532272408f9a9819b7.zip
Improve documentation about :dependent and callbacks.
Fixes #3458.
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/associations.rb5
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?
#