diff options
| author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-24 10:46:16 -0800 |
|---|---|---|
| committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-24 10:46:16 -0800 |
| commit | d8c5ea76bce3bdc810f3d06af7908c6e474b154c (patch) | |
| tree | d8dc56d7e781a7c5c678a0f92daf725331e8b7d5 | |
| parent | fa007e591d1ebf6df3fc8af4777c06e8a3d84eb3 (diff) | |
| download | rails-d8c5ea76bce3bdc810f3d06af7908c6e474b154c.tar.gz rails-d8c5ea76bce3bdc810f3d06af7908c6e474b154c.tar.bz2 rails-d8c5ea76bce3bdc810f3d06af7908c6e474b154c.zip | |
Use Rails.env after loading environment
| -rw-r--r-- | railties/lib/rails/commands/console.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/console.rb b/railties/lib/rails/commands/console.rb index fc22ad64a9..8807307271 100644 --- a/railties/lib/rails/commands/console.rb +++ b/railties/lib/rails/commands/console.rb @@ -41,10 +41,10 @@ module Rails end if options[:sandbox] - puts "Loading #{ENV['RAILS_ENV']} environment in sandbox (Rails #{Rails.version})" + puts "Loading #{Rails.env} environment in sandbox (Rails #{Rails.version})" puts "Any modifications you make will be rolled back on exit" else - puts "Loading #{ENV['RAILS_ENV']} environment (Rails #{Rails.version})" + puts "Loading #{Rails.env} environment (Rails #{Rails.version})" end IRB.start end |
