Sha256: 69d9ea382d77fb48fa066b854ad20b8ff045309d81ce4978ba3998cb26d979ad

Contents?: true

Size: 676 Bytes

Versions: 5

Compression:

Stored size: 676 Bytes

Contents

# frozen_string_literal: true

module FreshConnection
  class << self
    def connection_manager
      if defined?(@connection_manager)
        @connection_manager
      else
        require 'fresh_connection/connection_manager'
        ConnectionManager
      end
    end

    def connection_manager=(mgr)
      FreshConnection::ReplicaConnectionHandler.instance.refresh_all
      @connection_manager = mgr
    end
  end
end

require 'fresh_connection/replica_connection_handler'
require 'fresh_connection/abstract_connection_manager'
require 'fresh_connection/connection_specification'
require 'fresh_connection/extend'
require 'fresh_connection/railtie' if defined?(Rails)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fresh_connection-3.1.3 lib/fresh_connection.rb
fresh_connection-3.1.2 lib/fresh_connection.rb
fresh_connection-3.1.1 lib/fresh_connection.rb
fresh_connection-3.1.1.rc1 lib/fresh_connection.rb
fresh_connection-3.1.0 lib/fresh_connection.rb