Please sign in to comment.
dependent: :destroy should call destroy_all
Commit #9668 shows warning when `delete_all` is invoked with `:dependent` option `:destroy`. Unfortunately invoking `Post.destroy_all` invokes `post.comments.delete_all` as part of `has_many` callbacks. This commit ensures that instead `post.comments.destroy_all` is invoked and in the process no warning is generated. See issue #9567 for details .
- Loading branch information...
Showing with 3 additions and 2 deletions.