diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-17 18:54:55 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-17 18:54:55 +0000 |
commit | ab9e4c0eaacba34c9f1d16cf34c82e0e906edad5 (patch) | |
tree | 968f6acc717f524c8ff9bae281663016452da07d /railties/lib/commands/console.rb | |
parent | 0f6c86ff40d0b0efe672ae76f2b5b536feaf7255 (diff) | |
download | rails-ab9e4c0eaacba34c9f1d16cf34c82e0e906edad5.tar.gz rails-ab9e4c0eaacba34c9f1d16cf34c82e0e906edad5.tar.bz2 rails-ab9e4c0eaacba34c9f1d16cf34c82e0e906edad5.zip |
Ruby 1.9 compatibility. References #1689.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/commands/console.rb')
-rw-r--r-- | railties/lib/commands/console.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |