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:
commit
8654891cc7
1 changed files with 2 additions and 2 deletions
|
@ -14,9 +14,9 @@ module ActiveRecord
|
||||||
class RuntimeRegistry # :nodoc:
|
class RuntimeRegistry # :nodoc:
|
||||||
extend ActiveSupport::PerThreadRegistry
|
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}; instance.#{val}; end }, __FILE__, __LINE__
|
||||||
class_eval %{ def self.#{val}=(x); instance.#{val}=x; end }, __FILE__, __LINE__
|
class_eval %{ def self.#{val}=(x); instance.#{val}=x; end }, __FILE__, __LINE__
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue