mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Merge pull request #201 from mshibuya/fix-transaction-strategy-in-rails4.0.0.rc1
Fix for transaction strategy problem in Rails4 rc1
This commit is contained in:
commit
ce1d162989
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ module DatabaseCleaner::ActiveRecord
|
|||
def start
|
||||
# Hack to make sure that the connection is properly setup for
|
||||
# the clean code.
|
||||
connection_class.connection.transaction
|
||||
connection_class.connection.transaction{ }
|
||||
|
||||
if connection_maintains_transaction_count?
|
||||
if connection_class.connection.respond_to?(:increment_open_transactions)
|
||||
|
|
Loading…
Reference in a new issue