Sha256: bd5a7e3581f19629393f9e606c4cedabc7447c7805381944a6c3550b703df8fc
Contents?: true
Size: 308 Bytes
Versions: 1
Compression:
Stored size: 308 Bytes
Contents
module DatabaseSlave module Base extend ActiveSupport::Concern included do cattr_accessor :slave_connections self.slave_connections = [] class << self delegate :using_slave, to: :scoped end end end end ActiveRecord::Base.send(:include, DatabaseSlave::Base)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
database_slave-0.1.0 | lib/database_slave/base.rb |