Sha256: b33cab1234855085de8fc86597bd08c665e96d25315bc4e196571effef8cb5ea

Contents?: true

Size: 759 Bytes

Versions: 7

Compression:

Stored size: 759 Bytes

Contents

module FreshConnection
  autoload :ConnectionManager, 'fresh_connection/connection_manager'
  autoload :AbstractConnectionManager, 'fresh_connection/abstract_connection_manager'
  autoload :ConnectionManager, 'fresh_connection/connection_manager'
  autoload :ConnectionFactory, 'fresh_connection/connection_factory'
  autoload :SlaveConnectionHandler, 'fresh_connection/slave_connection_handler'
  autoload :AccessControl, 'fresh_connection/access_control'

  class << self
    attr_writer :connection_manager

    def connection_manager
      if defined?(@connection_manager)
        @connection_manager
      else
        ConnectionManager
      end
    end
  end
end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fresh_connection-2.1.2 lib/fresh_connection.rb
fresh_connection-2.1.1 lib/fresh_connection.rb
fresh_connection-2.1.0 lib/fresh_connection.rb
fresh_connection-2.0.4 lib/fresh_connection.rb
fresh_connection-2.0.3 lib/fresh_connection.rb
fresh_connection-2.0.2 lib/fresh_connection.rb
fresh_connection-2.0.1 lib/fresh_connection.rb