module Ilog::Controllers::Helpers
Public Instance Methods
get_database(path)
click to toggle source
# File lib/ilog/controllers/helpers.rb, line 9 def get_database path Ilog.configuration.namespaces[get_namespace path] end
get_namespace(path)
click to toggle source
# File lib/ilog/controllers/helpers.rb, line 12 def get_namespace path path end
set_database(path)
click to toggle source
# File lib/ilog/controllers/helpers.rb, line 4 def set_database path tmp_config = ActiveRecord::Base.connection_config tmp_config[:database] = get_database path ActiveRecord::Base.establish_connection tmp_config end