Browse files

Running rake dev leaves ERB in environment.rb. The existing Rake task…

… was just copying the file across. This patch modifies the Rake task to use the same ERB processing string used on database.yml, which cleans up the environment.rb file.

Signed-off-by: Michael Koziarski <>
  • Loading branch information...
1 parent 91b61a8 commit 58f14438a957997dd8aca4101f6204b08cf19747 Jesse Proudman committed with NZKoz Sep 26, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/Rakefile
@@ -202,7 +202,7 @@ task :copy_configs do
cp "configs/seeds.rb", "#{PKG_DESTINATION}/db/seeds.rb"
cp "environments/boot.rb", "#{PKG_DESTINATION}/config/boot.rb"
- cp "environments/environment.rb", "#{PKG_DESTINATION}/config/environment.rb"
+"#{PKG_DESTINATION}/config/environment.rb", 'w') {|f| f.write"environments/environment.rb"), nil, '-').result(binding)}
cp "environments/production.rb", "#{PKG_DESTINATION}/config/environments/production.rb"
cp "environments/development.rb", "#{PKG_DESTINATION}/config/environments/development.rb"
cp "environments/test.rb", "#{PKG_DESTINATION}/config/environments/test.rb"

0 comments on commit 58f1443

Please sign in to comment.