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

Version Path
db-charmer-1.5.5 lib/db_charmer/scope_proxy.rb
db-charmer-1.5.4 lib/db_charmer/scope_proxy.rb
db-charmer-1.5.3 lib/db_charmer/scope_proxy.rb
db-charmer-1.5.2 lib/db_charmer/scope_proxy.rb
db-charmer-1.5.1 lib/db_charmer/scope_proxy.rb
db-charmer-1.5.0 lib/db_charmer/scope_proxy.rb
db-charmer-1.4.6 lib/db_charmer/scope_proxy.rb
db-charmer-1.4.5 lib/db_charmer/scope_proxy.rb
db-charmer-1.4.4 lib/db_charmer/scope_proxy.rb
db-charmer-1.4.3 lib/db_charmer/scope_proxy.rb
db-charmer-1.4.1 lib/db_charmer/scope_proxy.rb
db-charmer-1.4.0 lib/db_charmer/scope_proxy.rb