mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Pass empty block to transaction method. Fixes #200
This commit is contained in:
parent
c34b4e4dea
commit
f1b215f111
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