1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
Neeraj Singh f319e4a942 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)`
2013-06-30 14:50:18 +05:30
..
active_record Do not invoke callbacks when delete_all is called 2013-06-30 14:50:18 +05:30
rails/generators copy edits[ci skip] 2013-05-19 21:38:23 +05:30
active_record.rb Remove depreacted finders 2013-06-28 00:24:11 +02:00