mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Have to remove the environment name from ARGV or IRB will freak out
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user