Permalink
Commits on May 16, 2010
  1. Add before_commit_on_save and after_commit_on_save.

    These callbacks are the after_commit equivalent of ActiveRecord's after_save callback. i.e. they are called both on create and save but not destroy.
    committed May 16, 2010
  2. DRY up MockRecord in tests

    committed May 16, 2010
  3. Revert "Do not call before_commit and after_commit for records that w…

    …ere destroyed in the transaction. You can now use after_commit as an equivalent for after_save."
    
    This reverts commit a9d6023.
    
    Conflicts:
    
    	lib/after_commit/connection_adapters.rb
    committed May 16, 2010
Commits on Apr 28, 2010
  1. Merge remote branch 'benstein/master'

    Conflicts:
    	lib/after_commit/connection_adapters.rb
    committed Apr 28, 2010
  2. Merge remote branch 'thieso2/master'

    Conflicts:
    	lib/after_commit/connection_adapters.rb
    committed Apr 28, 2010
  3. Merge remote branch 'oggy/master'

    Conflicts:
    	test/after_commit_test.rb
    committed Apr 28, 2010
Commits on Apr 25, 2010
  1. Add have_callback? helper to ActiveSupport callbacks for detecting if…

    … any callbacks have been registered.
    committed Apr 25, 2010
Commits on Mar 14, 2010
Commits on Mar 13, 2010
  1. Fix callbacks in tests.

    oggy committed Mar 13, 2010
Commits on Feb 16, 2010
  1. Updating to 1.0.6

    pat committed Feb 16, 2010
Commits on Feb 15, 2010
  1. cleanup callbacks from the proper transaction

    Benjamin Stein committed Feb 15, 2010
Commits on Feb 4, 2010
  1. Do not call before_commit and after_commit for records that were dest…

    …royed in the transaction. You can now use after_commit as an equivalent for after_save.
    thieso2 committed Feb 4, 2010
Commits on Dec 15, 2009
Commits on Dec 14, 2009
  1. Ruby 1.9 compatibility fixes: fix load paths for Rake tasks and tests…

    …. (From David Yip)
    pat committed Dec 14, 2009
  2. Load 'active_record', not 'activerecord': silences deprecation warnin…

    …gs. (From David Yip)
    pat committed Dec 14, 2009
Commits on Nov 25, 2009
  1. Updating to 1.0.4

    pat committed Nov 25, 2009
  2. Made ActiveRecord::TestBypass optional. (As a consequence, also remov…

    …ed rails/init.rb.)
    
    Say you've got a test case (or example, whichever) like this:
    
      test "something doesn't happen when commit fails" do
        Foo.connection.stub(:commit_db_transaction).and_raise(StandardError)
    
        begin; @foo.save; rescue; end
    
        assert something_depending_on_commit_doesnt_happen
      end
    
      uses_transaction "something doesn't happen when commit fails"
    
    AfterCommit::TestBypass will always fire the after_commit handler, and hence
    will make this test case always fail.
    David Yip committed with pat Nov 17, 2009
  3. Initialize after_commit in a Rails plugin environment.

    David Yip committed with pat Nov 20, 2009
  4. Ensuring adapter hooks are always added, no matter whether the connec…

    …tion is made before or after after_commit is loaded.
    pat committed Nov 25, 2009
Commits on Nov 20, 2009
  1. Updating version to 1.0.3

    pat committed Nov 20, 2009
  2. Fixing bug where creating a new transaction within the after_commit c…

    …allback endlessly loops to the callback.
    pat committed Nov 20, 2009
Commits on Nov 10, 2009
  1. Test fix (for real, this time)

    pat committed Nov 10, 2009
  2. Version bump to 1.0.2

    pat committed Nov 10, 2009
  3. Updated gemspec

    pat committed Nov 10, 2009
  4. Version bump to 1.0.1

    pat committed Nov 10, 2009
  5. Gemspec update

    pat committed Nov 10, 2009