diff options
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 |