Add a after_commit callback to ActiveRecord models that is called after the database transaction completes
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
MIT-LICENSE
README
Rakefile
init.rb

README

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