Sha256: dd9b0fbcd7e1f36390c3631a673bec79af66f0e52760812f6b9d09c4f1170a75
Contents?: true
Size: 636 Bytes
Versions: 3
Compression:
Stored size: 636 Bytes
Contents
module Ilog module Controllers module Helpers def set_database path puts 'sbs ' + path tmp_config = ActiveRecord::Base.connection_config tmp_config[:database] = get_database path ActiveRecord::Base.establish_connection tmp_config end def get_database path puts 'dbs ' + path puts 'result is = ' + Ilog.configuration.namespaces[get_namespace path] Ilog.configuration.namespaces[get_namespace path] end def get_namespace path path end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ilog-0.4.2 | lib/ilog/controllers/helpers.rb |
ilog-0.4.1 | lib/ilog/controllers/helpers.rb |
ilog-0.4.0 | lib/ilog/controllers/helpers.rb |