Permalink
Browse files

Explaining a bit better about the default behaviour of dependent

  • Loading branch information...
1 parent 8bf1088 commit 915b6b3929bad242632bdef455154156ca25064c Rodrigo Flores committed Jul 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/lib/active_record/associations.rb
@@ -941,7 +941,8 @@ def association_instance_set(name, association)
#
# 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?
#

0 comments on commit 915b6b3

Please sign in to comment.