aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2010-01-09 09:52:16 -0800
committerDavid Heinemeier Hansson <david@loudthinking.com>2010-01-09 09:52:16 -0800
commitd2c4a93c6966cb06d6029f9f4dbe5f71a52a02db (patch)
tree0caf09a716dcf017b065401ada16075d7ba91203 /railties
parent8665c754cb61c947cd55f8886c28188050aed78d (diff)
downloadrails-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.rb2
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