diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-02-24 10:10:19 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-02-24 10:10:19 -0800 |
commit | e06aae7d2518b3c9e87769735a9d38546ea792b6 (patch) | |
tree | 898010d7c33ffa35030566b30a608820b9db5212 /activerecord/lib | |
parent | a06b1d0cf4ce951ca33930064b2fb3143a385135 (diff) | |
parent | 5a7e6b68dbb75290d276479dc85148a8a7214c78 (diff) | |
download | rails-e06aae7d2518b3c9e87769735a9d38546ea792b6.tar.gz rails-e06aae7d2518b3c9e87769735a9d38546ea792b6.tar.bz2 rails-e06aae7d2518b3c9e87769735a9d38546ea792b6.zip |
Merge pull request #9399 from neerajdotname/7832-dependent-option
Updated doc to clarify about update_all and delete_all
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 06bdabfced..513d1012ba 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -965,8 +965,8 @@ module ActiveRecord # For +has_and_belongs_to_many+, <tt>delete</tt> and <tt>destroy</tt> are the same: they # cause the records in the join table to be removed. # - # For +has_many+, <tt>destroy</tt> will always call the <tt>destroy</tt> method of the - # record(s) being removed so that callbacks are run. However <tt>delete</tt> will either + # For +has_many+, <tt>destroy</tt> and <tt>destory_all</tt> will always call the <tt>destroy</tt> method of the + # record(s) being removed so that callbacks are run. However <tt>delete</tt> and <tt>delete_all</tt> will either # do the deletion according to the strategy specified by the <tt>:dependent</tt> option, or # if no <tt>:dependent</tt> option is given, then it will follow the default strategy. # The default strategy is <tt>:nullify</tt> (set the foreign keys to <tt>nil</tt>), except for |