rails/rails — pull request #9402 by senny (2013-02-24 19:45:23+00:00)
Title: update the example for `after_commit` in the guides.

This is a follow up to #9356.

The original example was quite complicated because it did not specify that the callback should only run on destroy. Therefore a second callback was necessary to set the state.