This repository has been archived by the owner on May 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Add a after_commit callback to ActiveRecord models that is called after the database transaction completes
License
craigw/callback_after_commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
CallbackAfterCommit =================== Based on the code here: http://rubyurl.com/4Jo6 Example ======= class Animal < ActiveRecord::Base after_commit :log_commit private def log_commit logger.debug "COMMITTED Animal##{id}" end end Copyright (c) 2009 Craig R Webster, released under the MIT license
About
Add a after_commit callback to ActiveRecord models that is called after the database transaction completes
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published