Class: ActiveRecord::ConnectionAdapters::ConnectionHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record_host_pool/connection_adapter_mixin.rb

Instance Method Summary collapse

Instance Method Details

#establish_connection(owner, spec) ⇒ Object

Raises:

  • (RuntimeError)


91
92
93
# File 'lib/active_record_host_pool/connection_adapter_mixin.rb', line 91

def establish_connection(spec)
  owner_to_pool[spec.name] = ActiveRecordHostPool::PoolProxy.new(spec)
end