Sha256: 08076149fd0b2b79f223ddf72d10a0ff9fe6be2e144aa437911146f248483fbb
Contents?: true
Size: 780 Bytes
Versions: 5
Compression:
Stored size: 780 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/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