Pass empty block to transaction method. Fixes #200

This commit is contained in:
M.Shibuya 2013-05-03 23:02:34 +09:00
parent c34b4e4dea
commit f1b215f111

View file

@ -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)