Class: Sbmt::Outbox::DatabaseSwitcher

Inherits:
Object
  • Object
show all
Defined in:
lib/sbmt/outbox/database_switcher.rb

Class Method Summary collapse

Class Method Details

.use_masterObject



10
11
12
# File 'lib/sbmt/outbox/database_switcher.rb', line 10

def self.use_master
  yield
end

.use_slaveObject



6
7
8
# File 'lib/sbmt/outbox/database_switcher.rb', line 6

def self.use_slave
  yield
end