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

Merge pull request #39988 from Shopify/unused-registry-connection-handler

Get rid of the unused RuntimeRegistry.connection_handler
This commit is contained in:
Eileen M. Uchitelle 2020-08-05 09:22:05 -04:00 committed by GitHub
commit 8654891cc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,9 +14,9 @@ module ActiveRecord
class RuntimeRegistry # :nodoc:
extend ActiveSupport::PerThreadRegistry
attr_accessor :connection_handler, :sql_runtime
attr_accessor :sql_runtime
[:connection_handler, :sql_runtime].each do |val|
[:sql_runtime].each do |val|
class_eval %{ def self.#{val}; instance.#{val}; end }, __FILE__, __LINE__
class_eval %{ def self.#{val}=(x); instance.#{val}=x; end }, __FILE__, __LINE__
end