Module: FirstBase

Defined in:
lib/secondbase.rb

Class Method Summary collapse

Class Method Details

.config(env) ⇒ Object



38
39
40
# File 'lib/secondbase.rb', line 38

def self.config(env)
  ActiveRecord::Base.configurations[env]
end

.has_runner(env) ⇒ Object



42
43
44
45
# File 'lib/secondbase.rb', line 42

def self.has_runner(env)
  ActiveRecord::Base.establish_connection(FirstBase::config(env))
  SecondBase.reset_visitor_cache
end