Sha256: 8d5ca805903bb0d6881961f52dbd16ac3a57fc349100bc2c7be6419c441a9d56
Contents?: true
Size: 1.13 KB
Versions: 12
Compression:
Stored size: 1.13 KB
Contents
require "connection_manager/version" module ConnectionManager require 'active_record' require 'active_support' require 'connection_manager/helpers/abstract_adapter_helper' require 'connection_manager/connection_builder' require 'connection_manager/helpers/connection_helpers' require 'connection_manager/using' require 'connection_manager/shards' require 'connection_manager/replication' require 'connection_manager/patches/cross_schema_patch' require 'connection_manager/connection_manager_railtie' if defined?(Rails) ActiveRecord::ConnectionAdapters::AbstractAdapter.send(:include,(ConnectionManager::AbstractAdapterHelper)) ActiveRecord::Base.extend(ConnectionManager::ConnectionHelpers) ActiveRecord::Base.extend(ConnectionManager::ConnectionBuilder) ActiveRecord::Base.send(:include,ConnectionManager::Using) ActiveRecord::QueryMethods.send(:include,ConnectionManager::UsingQueryMethod) ActiveRecord::Base.extend(ConnectionManager::Replication) ActiveRecord::Base.extend(ConnectionManager::Shards) ActiveSupport.on_load(:active_record) do ActiveRecord::Base.build_connection_classes end end
Version data entries
12 entries across 12 versions & 1 rubygems