grosser/test_after_commit — pull request #16 by emirose (2013-08-22 17:34:07+00:00)
Title: after_commit doesn't fire if the transaction block contains a return statement

If the transaction block contains a return, the else block is never reached. This pull request contains two commits: one that adds a failing test for this scenario and another that fixes it.

We understand that returning from within a transaction block is probably not considered a best practice, but it would be great if this gem didn't rely on clean codebases. We wish we didn't have to fix this :-)

Thanks!
@hugocorbucci & @emirose