Module: DbCharmer::AssociationProxy::InstanceMethods

Defined in:
lib/db_charmer/association_proxy.rb

Instance Method Summary collapse

Instance Method Details

#on_db(con, &block) ⇒ Object



4
5
6
# File 'lib/db_charmer/association_proxy.rb', line 4

def on_db(con, &block)
  @reflection.klass.on_db(con, self, &block)
end

#on_master(&block) ⇒ Object



12
13
14
# File 'lib/db_charmer/association_proxy.rb', line 12

def on_master(&block)
  @reflection.klass.on_master(self, &block)
end

#on_slave(con = nil, &block) ⇒ Object



8
9
10
# File 'lib/db_charmer/association_proxy.rb', line 8

def on_slave(con = nil, &block)
  @reflection.klass.on_slave(con, self, &block)
end