Sha256: ff89b0b9d69d2b737a615bc510be3f96d5666990c81b245d0496916293f22a3e
Contents?: true
Size: 1.03 KB
Versions: 6
Compression:
Stored size: 1.03 KB
Contents
require "connection_manager/version" module ConnectionManager require 'thread_safe' require 'active_record' require 'active_support' require 'connection_manager/connection_adapters/abstract_adapter' require 'connection_manager/core' require 'connection_manager/connection_handling' require 'connection_manager/relation' require 'connection_manager/querying' require 'connection_manager/builder' require 'connection_manager/using' require 'connection_manager/replication' require 'connection_manager/shards' require 'connection_manager/railtie' if defined?(Rails) # Get the current environment if defined # Check for Rails, check for RACK_ENV, default to 'development' def self.env return @env if @env return Rails.env if defined?(Rails) return RACK_ENV if defined?(RACK_ENV) return ENV["AR_ENV"] if ENV["AR_ENV"] "development" end def self.env=env @env=env end def self.logger @logger ||= ActiveRecord::Base.logger end def self.logger=logger @logger = logger end end
Version data entries
6 entries across 6 versions & 1 rubygems