method
establish_connection
establish_connection(owner, spec)
public
Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 532 def establish_connection(owner, spec) @class_to_pool.clear raise RuntimeError, "Anonymous class is not allowed." unless owner.name owner_to_pool[owner.name] = ConnectionAdapters::ConnectionPool.new(spec) end