aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRodrigo Flores <rodrigo.flores@plataformatec.com.br>2012-07-28 23:13:15 -0300
committerRodrigo Flores <rodrigo.flores@plataformatec.com.br>2012-07-28 23:13:46 -0300
commit915b6b3929bad242632bdef455154156ca25064c (patch)
tree1fcf4abcd30df38e5f53f51df6c052879c3d3494 /activerecord
parent8bf1088d7d9a0ca46ce8e167da4130044ebf1d0c (diff)
downloadrails-915b6b3929bad242632bdef455154156ca25064c.tar.gz
rails-915b6b3929bad242632bdef455154156ca25064c.tar.bz2
rails-915b6b3929bad242632bdef455154156ca25064c.zip
Explaining a bit better about the default behaviour of dependent
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 05715feb97..edf82eb170 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -941,7 +941,8 @@ module ActiveRecord
#
# The <tt>:dependent</tt> option can have different values which specify how the deletion
# is done. For more information, see the documentation for this option on the different
- # specific association types.
+ # specific association types. When no option is given, the behaviour is to do nothing
+ # with the associated records when destroying a record.
#
# === Delete or destroy?
#