lib/rails/commands/console.rb in railties-3.0.1 vs lib/rails/commands/console.rb in railties-3.0.2

- old
+ new

@@ -46,7 +46,7 @@ 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 - ENV['RAILS_ENV'] = %w(production development test).find { |e| e.index(env) } || env + ENV['RAILS_ENV'] = %w(production development test).detect {|e| e =~ /^#{env}/} || env end