lib/rails/commands/console.rb in railties-3.0.7 vs lib/rails/commands/console.rb in railties-3.0.8.rc1

- old
+ new

@@ -45,8 +45,8 @@ end end end # Has to set the RAILS_ENV before config/application is required -if ARGV.first && !ARGV.first.index("-") && env = ARGV.pop # has to pop the env ARGV so IRB doesn't freak +if ARGV.first && !ARGV.first.index("-") && env = ARGV.shift # has to shift the env ARGV so IRB doesn't freak ENV['RAILS_ENV'] = %w(production development test).detect {|e| e =~ /^#{env}/} || env end