Permalink
Browse files

Dont redefine RAILS_ENV once set

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2425 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 562b698 commit 3b108e7d35768c37810b9ec4c012db814bc09c1b @dhh dhh committed Sep 30, 2005
Showing with 1 addition and 3 deletions.
  1. +1 −3 railties/lib/initializer.rb
@@ -1,8 +1,6 @@
require 'logger'
-old_verbose, $VERBOSE = $VERBOSE, nil
-RAILS_ENV = ENV['RAILS_ENV'] || 'development'
-$VERBOSE = old_verbose
+RAILS_ENV = ENV['RAILS_ENV'] || 'development' unless defined?(RAILS_ENV)
module Rails
# The Initializer is responsible for processing the Rails configuration, such as setting the $LOAD_PATH, requiring the

0 comments on commit 3b108e7

Please sign in to comment.