aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjules Ivanic <jules.ivanic@gmail.com>2018-12-03 10:12:14 +0100
committerjules Ivanic <jules.ivanic@gmail.com>2018-12-03 10:12:14 +0100
commit6d1c9a9b23579d13b7cbdd3217ed2cfcc300e06e (patch)
treeb771d1021da4629e5f2080b911b01b5ad4f77027
parente7717ec7a09ca83f92a9819303f7a93e038a2679 (diff)
downloadrails-6d1c9a9b23579d13b7cbdd3217ed2cfcc300e06e.tar.gz
rails-6d1c9a9b23579d13b7cbdd3217ed2cfcc300e06e.tar.bz2
rails-6d1c9a9b23579d13b7cbdd3217ed2cfcc300e06e.zip
Pass the `connection` to the `@instrumenter.instrument` method call
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract_adapter.rb3
1 files changed, 2 insertions, 1 deletions
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