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