aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-12-03 10:47:50 -0500
committerGitHub <noreply@github.com>2018-12-03 10:47:50 -0500
commite167818687bd71b6358f4c84e782009952662e80 (patch)
tree1a250415fa954ac1870b247a6f677a0432f4f97d /activerecord
parent41e468a0518a45d017bfe74b4be12afd1d07e04c (diff)
parent6d1c9a9b23579d13b7cbdd3217ed2cfcc300e06e (diff)
downloadrails-e167818687bd71b6358f4c84e782009952662e80.tar.gz
rails-e167818687bd71b6358f4c84e782009952662e80.tar.bz2
rails-e167818687bd71b6358f4c84e782009952662e80.zip
Merge pull request #34602 from guizmaii/master
Pass the `connection` to the `@instrumenter.instrument` method call
Diffstat (limited to 'activerecord')
-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 9d971d9e16..f7d75e6748 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -629,7 +629,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