aboutsummaryrefslogtreecommitdiffstats
path: root/.yardopts
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2013-03-11 20:50:22 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2013-03-11 20:50:22 -0400
commitc3829d31866870e852a64f8a1236f3287d41783b (patch)
tree7425e839246fe575012d889a3a9f6c45cc770e05 /.yardopts
parentcae93be0cac32eaa75746dda00454a26c4654be5 (diff)
downloadrails-c3829d31866870e852a64f8a1236f3287d41783b.tar.gz
rails-c3829d31866870e852a64f8a1236f3287d41783b.tar.bz2
rails-c3829d31866870e852a64f8a1236f3287d41783b.zip
dependent: :destroy should call destroy_all
Commit https://github.com/rails/rails/pull/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 .
Diffstat (limited to '.yardopts')
0 files changed, 0 insertions, 0 deletions