Class: ActiveRecord::ConnectionAdapters::ConnectionHandler
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::ConnectionHandler
- Defined in:
- lib/active_record_host_pool/connection_adapter_mixin.rb
Instance Method Summary collapse
Instance Method Details
#establish_connection(owner, spec) ⇒ Object
95 96 97 98 99 100 |
# File 'lib/active_record_host_pool/connection_adapter_mixin.rb', line 95 def establish_connection(spec) resolver = ConnectionAdapters::ConnectionSpecification::Resolver.new(Base.configurations) spec = resolver.spec(spec) owner_to_pool[spec.name] = ActiveRecordHostPool::PoolProxy.new(spec) end |