diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-06-29 09:46:45 -0400 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2016-06-29 09:50:52 -0400 |
commit | 4565de0da14a4b3d75e8b1a652fcb6dcd947c451 (patch) | |
tree | 4d4d2bebc90c9fe78f5f3e834bc9072b982ec650 /activerecord/lib/active_record/runtime_registry.rb | |
parent | 10539ad7a998d305dd94d0ff3b39991ad3918c18 (diff) | |
download | rails-4565de0da14a4b3d75e8b1a652fcb6dcd947c451.tar.gz rails-4565de0da14a4b3d75e8b1a652fcb6dcd947c451.tar.bz2 rails-4565de0da14a4b3d75e8b1a652fcb6dcd947c451.zip |
Remove unused `ActiveRecord::Base.connection_id`
This method appears to have been partially used in connection pool
caching, but it was introduced without much reasoning or any tests. One
edge case test was added later on, but it was focused on implementation
details. This method is no longer used outside of tests, and as such is
removed.
Diffstat (limited to 'activerecord/lib/active_record/runtime_registry.rb')
-rw-r--r-- | activerecord/lib/active_record/runtime_registry.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/runtime_registry.rb b/activerecord/lib/active_record/runtime_registry.rb index 56e88bc661..9e86999c1b 100644 --- a/activerecord/lib/active_record/runtime_registry.rb +++ b/activerecord/lib/active_record/runtime_registry.rb @@ -12,9 +12,9 @@ module ActiveRecord class RuntimeRegistry # :nodoc: extend ActiveSupport::PerThreadRegistry - attr_accessor :connection_handler, :sql_runtime, :connection_id + attr_accessor :connection_handler, :sql_runtime - [:connection_handler, :sql_runtime, :connection_id].each do |val| + [:connection_handler, :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 |