Module: SlavePools::ActiveRecordExtensions

Defined in:
lib/slave_pools/active_record_extensions.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
# File 'lib/slave_pools/active_record_extensions.rb', line 3

def self.included(base)
  base.send :extend, ClassMethods
end

Instance Method Details

#reload(options = nil) ⇒ Object



7
8
9
# File 'lib/slave_pools/active_record_extensions.rb', line 7

def reload(options = nil)
  self.class.connection_proxy.with_master { super }
end