Skip to content

Commit

Permalink
We need the TestBypass to be enables all the time.
Browse files Browse the repository at this point in the history
  • Loading branch information
thieso2 committed Feb 4, 2010
1 parent a9d6023 commit 0fafa25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions init.rb
@@ -1 +1,6 @@
require 'after_commit'

# enable TestBypass by default in RAILS_ENV == 'test'
ActiveRecord::Base.class_eval do
include AfterCommit::TestBypass if RAILS_ENV == 'test'
end

0 comments on commit 0fafa25

Please sign in to comment.