public
Fork of ninjudd/after_commit
Description: A Ruby on Rails plugin to add an after_commit callback. This can be used to trigger things only after the entire transaction is complete.
Homepage:
Clone URL: git://github.com/trotter/after_commit.git
trotter (author)
Thu Apr 23 04:35:12 -0700 2009
commit  ac9474ad9100e362bc0b02d207295d66c4672af4
tree    7954f4ef99ef3ff47fa2f2e3fc4a2359645b4adf
parent  acc0211ac44aa3141be0dad8262c104e648237f7
name age message
file .gitignore Tue Jun 24 20:01:20 -0700 2008 Fix after_commit_on_* callbacks [xaviershay]
file LICENSE Sat May 31 14:27:26 -0700 2008 Initial import. [GUI]
file README Loading commit data...
file Rakefile Sat May 31 14:27:26 -0700 2008 Initial import. [GUI]
file init.rb Sat May 31 14:27:26 -0700 2008 Initial import. [GUI]
directory lib/
directory test/
README
after_commit
===========

A Ruby on Rails plugin to add after_commit callbacks. The callbacks that are provided can be used
to trigger events that run only after the entire transaction is complete. This is beneficial
in situations where you are doing asynchronous processing and need committed objects.

The following callbacks are provided:
  
   * (1) after_commit
   * (2) after_commit_on_create
   * (3) after_commit_on_update
   * (4) after_commit_on_destroy
   * (5) after_rollback
   
The after_commit callback is run for any object that has just been committed. You can obtain finer
callback control by using the additional <tt>after_commit_on_*</tt> callbacks. The after_rollback 
callback is like after_commit, but called when a rollback occurs.