Have to remove the environment name from ARGV or IRB will freak out

This commit is contained in:
David Heinemeier Hansson
2010-01-09 09:52:16 -08:00
parent 8665c754cb
commit d2c4a93c69

View File

@@ -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