Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Add a after_commit callback to ActiveRecord models that is called after the database transaction completes

License

Notifications You must be signed in to change notification settings

craigw/callback_after_commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

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

No packages published

Languages