rails/rails — pull request #10313 by neerajdotname (2013-04-23 01:58:17+00:00)
Title: destroy only if associated record is destroyed

fixes #5147

If any of the associated records fail to destroy then do not destroy the record.

I'll clean up the commit message and will add a changelog if there is an interest in the patch.

/cc @carlosantoniodasilva . You participated in the discussion of the original issue.