Sha256: f3dcda92199a9adc596be549ed41fdf6c9f7f8f1e713bebf3d58f3b715ccecfa
Contents?: true
Size: 445 Bytes
Versions: 32
Compression:
Stored size: 445 Bytes
Contents
module DbCharmer module ScopeProxy module InstanceMethods def proxy? true end def on_db(con, proxy_target = nil, &block) proxy_target ||= self proxy_scope.on_db(con, proxy_target, &block) end def on_slave(con = nil, &block) proxy_scope.on_slave(con, self, &block) end def on_master(&block) proxy_scope.on_master(self, &block) end end end end
Version data entries
32 entries across 32 versions & 1 rubygems