Changeset 1910
- Timestamp:
- 07/24/05 08:16:07 (3 years ago)
- Files:
-
- trunk/railties/CHANGELOG (modified) (1 diff)
- trunk/railties/environments/environment.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/railties/CHANGELOG
r1909 r1910 1 1 *SVN* 2 3 * Allow ERb in the database.yml file (just like with fixtures), so you can pull out the database configuration in environment variables #1822 [Duane Johnson] 2 4 3 5 * Added convenience controls for FCGI processes (especially when managed remotely): spinner, spawner, and reaper. They reside in script/process. More details can be had by calling them with -h/--help. trunk/railties/environments/environment.rb
r1875 r1910 62 62 # Environment-specific configuration. 63 63 require_dependency "environments/#{RAILS_ENV}" 64 ActiveRecord::Base.configurations = File.open("#{RAILS_ROOT}/config/database.yml") { |f| YAML::load(f) }64 ActiveRecord::Base.configurations = YAML::load(ERB.new((IO.read("#{RAILS_ROOT}/config/database.yml"))).result) 65 65 ActiveRecord::Base.establish_connection 66 66