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.6.19 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.18 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.17 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.16 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.15 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.14 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.13 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.12 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.11 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.10 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.9 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.8 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.7 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.6 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.5 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.4 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.3 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.2 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.1 lib/db_charmer/scope_proxy.rb
db-charmer-1.6.0 lib/db_charmer/scope_proxy.rb