class Rage::Configuration::Internal

@private

def initialized!

def initialized!
  @initialized = true
end

def initialized?

def initialized?
  !!@initialized
end

def inspect

def inspect
  "#<#{self.class.name}>"
end

def patch_ar_pool?

def patch_ar_pool?
  !ENV["RAGE_DISABLE_AR_POOL_PATCH"] && !Rage.env.test?
end

def should_manually_release_ar_connections?

AR 7.2+ uses `with_connection` internaly, so we only need to do this for older versions;
whether we should manually release AR connections;
def should_manually_release_ar_connections?
  defined?(ActiveRecord) && ActiveRecord.version < Gem::Version.create("7.2.0")
end

def should_manually_restore_ar_connections?

AR 7.1+ does this automatically while executing the query;
whether we should manually reconnect closed AR connections;
def should_manually_restore_ar_connections?
  defined?(ActiveRecord) && ActiveRecord.version < Gem::Version.create("7.1.0")
end