Module: SwitchConnection

Extended by:
ClassMethods
Defined in:
lib/switch_connection/connection_routing.rb,
lib/switch_connection.rb,
lib/switch_connection/error.rb,
lib/switch_connection/model.rb,
lib/switch_connection/proxy.rb,
lib/switch_connection/config.rb,
lib/switch_connection/version.rb,
lib/switch_connection/proxy_repository.rb

Overview

This Module is for MonkeyPatch ActiveRecord::Relation

Defined Under Namespace

Modules: ClassMethods, Model, Relation Classes: Config, Error, Proxy, ProxyRepository, ReadonlyError, UnconfiguredError

Constant Summary collapse

VERSION =
'1.1.0'

Method Summary

Methods included from ClassMethods

config, configure, master!, master_all!, slave!, slave_all!, with_master, with_master_all, with_mode, with_slave, with_slave_all