rails/rails — pull request #9115 by bensie (2013-01-29 21:15:01+00:00)
Title: Don't call after_commit when creating through an association and save fails, fixes #5802

As described in #5802, when creating through an association using a non-bang `create`, if the create fails for some reason, `after_commit` is still called.