GUI / after_commit

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.

This URL has Read+Write access

delynn (author)
Wed Jun 11 18:45:45 -0700 2008
commit  34832ee3359516042d302961c8e9157d0cbec512
tree    771d71dbe3e8030eea6bb541427069384d4fe7c6
parent  e2e6e79cbecccc166a7bd0be7631ba2b257cc3ad
name age message
file LICENSE Sat May 31 14:27:26 -0700 2008 Initial import. [GUI]
file README Wed Jun 11 18:45:45 -0700 2008 Reworked the README. [delynn]
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/ Wed Jun 11 17:30:33 -0700 2008 Fixed a paste that didn't get updated. [delynn]
directory test/ Sat May 31 14:27:26 -0700 2008 Initial import. [GUI]
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
   
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.