module DbSwitch::ThreadVariables

Public Instance Methods

db_switch_connection_name() click to toggle source
# File lib/db-switch/thread_variables.rb, line 3
def db_switch_connection_name
  Thread.current[:db_switch_connection_name]
end
db_switch_connection_name=(value) click to toggle source
# File lib/db-switch/thread_variables.rb, line 7
def db_switch_connection_name=(value)
  Thread.current[:db_switch_connection_name] = value
end