class ActiveRecord::Bogacs::ConnectionHandler

Public Instance Methods

establish_connection(owner, spec) click to toggle source
# File lib/active_record/bogacs/connection_handler.rb, line 11
def establish_connection(owner, spec)
  @class_to_pool.clear
  if spec.config[:pool].eql? false
    owner_to_pool[owner.name] = ActiveRecord::Bogacs::FalsePool.new(spec)
  else # super
    owner_to_pool[owner.name] = ActiveRecord::ConnectionAdapters::ConnectionPool.new(spec)
  end
end