Sha256: 55c4d6397f0f65c3df215c092c2e71a8687497aafc26c8787b3c47aeed4711fe
Contents?: true
Size: 478 Bytes
Versions: 7
Compression:
Stored size: 478 Bytes
Contents
module Ilog module Controllers module Helpers def set_database path tmp_config = ActiveRecord::Base.connection_config tmp_config[:database] = get_database path ActiveRecord::Base.establish_connection tmp_config end def get_database path Ilog.configuration.namespaces[get_namespace path] end def get_namespace path path end end end end
Version data entries
7 entries across 7 versions & 1 rubygems