class ActiveRecord::ConnectionNotEstablished

Raised when connection to the database could not been established (for example when ActiveRecord::Base.lease_connection= is given a nil object).

Public Class Methods

new(message = nil, connection_pool: nil) click to toggle source
Calls superclass method ActiveRecord::AdapterError::new
# File lib/active_record/errors.rb, line 68
def initialize(message = nil, connection_pool: nil)
  super(message, connection_pool: connection_pool)
end

Public Instance Methods

set_pool(connection_pool) click to toggle source
# File lib/active_record/errors.rb, line 72
def set_pool(connection_pool)
  unless @connection_pool
    @connection_pool = connection_pool
  end

  self
end