Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix radiant:update:configs again.

  • Loading branch information...
commit 2b9e0f712facedd9542d58c65addbed352829604 1 parent 9296b4c
@seancribbs seancribbs authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/tasks/framework.rake
View
5 lib/tasks/framework.rake
@@ -104,9 +104,8 @@ unless File.directory? "#{RAILS_ROOT}/app"
gen_env = "#{File.dirname(__FILE__)}/../generators/instance/templates/instance_environment.rb"
backup_env = "#{RAILS_ROOT}/config/environment.bak"
File.open(tmp_env, 'w') do |f|
- f.write ERB.new(File.read(gen_env)).result(lambda do
- app_name = File.basename(File.expand_path(RAILS_ROOT))
- end)
+ app_name = File.basename(File.expand_path(RAILS_ROOT))
+ f.write ERB.new(File.read(gen_env)).result(binding)
end
unless FileUtils.compare_file(instance_env, tmp_env)
FileUtils.cp(instance_env, backup_env)
Please sign in to comment.
Something went wrong with that request. Please try again.