method

establish_connection

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