diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2013-05-13 17:10:23 -0400 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2013-06-30 14:50:18 +0530 |
commit | f319e4a9421d8815717fd6ca6191268fed9e536d (patch) | |
tree | 086cf58278e401835cf6a274124b09c0dfa64f18 /activemodel | |
parent | 4eedb3928e5555e9d766f7c92637a6341c461efb (diff) | |
download | rails-f319e4a9421d8815717fd6ca6191268fed9e536d.tar.gz rails-f319e4a9421d8815717fd6ca6191268fed9e536d.tar.bz2 rails-f319e4a9421d8815717fd6ca6191268fed9e536d.zip |
Do not invoke callbacks when delete_all is called
Method `delete_all` should not be invoking callbacks and this
feature was deprecated in Rails 4.0. This is being removed.
`delete_all` will continue to honor the `:dependent` option. However
if `:dependent` value is `:destroy` then the default deletion
strategy for that collection will be applied.
User can also force a deletion strategy by passing parameter to
`delete_all`. For example you can do `@post.comments.delete_all(:nullify)`
Diffstat (limited to 'activemodel')
0 files changed, 0 insertions, 0 deletions