From 6d1c9a9b23579d13b7cbdd3217ed2cfcc300e06e Mon Sep 17 00:00:00 2001 From: jules Ivanic Date: Mon, 3 Dec 2018 10:12:14 +0100 Subject: [PATCH] Pass the `connection` to the `@instrumenter.instrument` method call --- .../lib/active_record/connection_adapters/abstract_adapter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index 31a994292e..fb950bce94 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -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