1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Pass the connection to the @instrumenter.instrument method call

This commit is contained in:
jules Ivanic 2018-12-03 10:12:14 +01:00
parent e7717ec7a0
commit 6d1c9a9b23

View file

@ -631,7 +631,8 @@ module ActiveRecord
binds: binds,
type_casted_binds: type_casted_binds,
statement_name: statement_name,
connection_id: object_id) do
connection_id: object_id,
connection: self) do
begin
@lock.synchronize do
yield