A Ruby on Rails plugin to add an after_commit callback. This can be used to trigger methods only after the entire transaction is complete.
Nick Muerdter, David Yip, Pat Allan
gem "after_commit", "~> 1.0.11"