search for: rails_environment

Displaying 1 result from an estimated 1 matches for "rails_environment".

2007 Apr 23
0
Using mapped database connections
...mething like that then ENV[''RAILS_ENV''] would need to be set before requiring config/boot.rb but that still wouldn''t require loading the database config manually. Alternatively, if it has to be done the way it is then the following code could be used if db_config[rails_environment].kind_of?(String) db_config[rails_environment] = db_config[db_config[rails_environment]] end backgrounDRb would then be able to handle instances when one rails environments database is mapped to that of another. Is this right or have I missed something somewhere? - Geoff