method
establish_connection
v4.2.9 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionHandler
establish_connection(owner, spec)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 536
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