Sha256: b29b307282b2045d3e49b5d6f0e4764be3624ff9e82aadeedfdb56f89deedb28
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 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 def rails_52? [ActiveRecord::VERSION::MAJOR, ActiveRecord::VERSION::MINOR] == [5, 2] end end end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fresh_connection-3.0.1.rc1 | lib/fresh_connection.rb |