From 4b78e5bddbf75a803452fd69f077b6c1ef1c267d Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Fri, 14 Oct 2005 02:51:33 +0000 Subject: Fix problem with RAILS_ENV being frozen when set from environment variable git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2576 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/commands/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/commands/runner.rb') diff --git a/railties/lib/commands/runner.rb b/railties/lib/commands/runner.rb index 49827c3812..27a2cf33d6 100644 --- a/railties/lib/commands/runner.rb +++ b/railties/lib/commands/runner.rb @@ -1,6 +1,6 @@ require 'optparse' -options = { :environment => "development" } +options = { :environment => (ENV['RAILS_ENV'] || "development").dup } ARGV.options do |opts| script_name = File.basename($0) -- cgit v1.2.3