Sha256: 9b88437c3d72c13daf9b8cbc274c57ebba20905d19e708dff55dda8b63519f48

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

module DbCharmer
  module ScopeProxy
    module InstanceMethods
      def on_db(con, proxy_target = nil, &block)
        proxy_target ||= self
        proxy_scope.on_db(con, self, &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

1 entries across 1 versions & 1 rubygems

Version Path
db-charmer-1.3.4 lib/db_charmer/scope_proxy.rb