From ab9e4c0eaacba34c9f1d16cf34c82e0e906edad5 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 17 Dec 2007 18:54:55 +0000 Subject: Ruby 1.9 compatibility. References #1689. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/commands/console.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'railties/lib/commands') diff --git a/railties/lib/commands/console.rb b/railties/lib/commands/console.rb index edb135ff40..edffe4f1e6 100644 --- a/railties/lib/commands/console.rb +++ b/railties/lib/commands/console.rb @@ -16,9 +16,9 @@ libs << " -r console_sandbox" if options[:sandbox] libs << " -r console_with_helpers" ENV['RAILS_ENV'] = case ARGV.first - when "p": "production" - when "d": "development" - when "t": "test" + when "p"; "production" + when "d"; "development" + when "t"; "test" else ARGV.first || ENV['RAILS_ENV'] || 'development' end -- cgit v1.2.3