This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | ||
| |
tasks/ | ||
| |
test/ | ||
| |
uninstall.rb |
README.rdoc
CommitCallback
adds commit_callback to ActiveRecord::Base, usually you’ll want to call it from an after_save hook.
For Example:
after_save :send_some_message
def send_some_message
self.commit_callback do
#do the real message sending now that we're sure self has been committed to the DB
end
end
For test:
if your tests
use_transactional_fixtures = true
then you might find it useful to put this in your setup
CommitCallback.adapt_for_transactional_test!(ActiveRecord::Base.connection)
Copyright © 2009 3M. All rights reserved. Released under the MIT license.
Authored by Jacob Burkhart.








