Skip to content

Commit 900054b

Browse files
intrippalkan
authored andcommitted
Fix let_it_be with Rails3 with no transactions
1 parent 526ab77 commit 900054b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/test_prof/ext/active_record_3.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ module TestProf
55
module ActiveRecord3Transactions
66
refine ::ActiveRecord::ConnectionAdapters::AbstractAdapter do
77
def begin_transaction(joinable: true)
8-
increment_open_transactions
98
if open_transactions > 0
9+
increment_open_transactions
1010
create_savepoint
1111
else
1212
begin_db_transaction

0 commit comments

Comments
 (0)