diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2010-01-09 09:52:16 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2010-01-09 09:52:16 -0800 |
commit | d2c4a93c6966cb06d6029f9f4dbe5f71a52a02db (patch) | |
tree | 0caf09a716dcf017b065401ada16075d7ba91203 /railties | |
parent | 8665c754cb61c947cd55f8886c28188050aed78d (diff) | |
download | rails-d2c4a93c6966cb06d6029f9f4dbe5f71a52a02db.tar.gz rails-d2c4a93c6966cb06d6029f9f4dbe5f71a52a02db.tar.bz2 rails-d2c4a93c6966cb06d6029f9f4dbe5f71a52a02db.zip |
Have to remove the environment name from ARGV or IRB will freak out
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/commands/console.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/console.rb b/railties/lib/rails/commands/console.rb index 37eb6d40ea..d154808029 100644 --- a/railties/lib/rails/commands/console.rb +++ b/railties/lib/rails/commands/console.rb @@ -25,7 +25,7 @@ module Rails opt.parse!(ARGV) end - if env = ARGV.first + if env = ARGV.pop ENV['RAILS_ENV'] = ENVIRONMENTS.find { |e| e.index(env) } || env end |