From 1d97b8f9e4ef0bbac093210c1e245c377ea30486 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Sat, 7 Jul 2018 10:15:56 +0200 Subject: Don't balloon @original_options with --restart on restart. Our restart_command would pass in `--restart` which means that if the @original_options already contains --restart it would keep getting another --restart appended. Nothing here that would break the bank, but just a nicety. --- railties/lib/rails/commands/server/server_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails/commands/server') diff --git a/railties/lib/rails/commands/server/server_command.rb b/railties/lib/rails/commands/server/server_command.rb index 95ac497b2e..194db23f14 100644 --- a/railties/lib/rails/commands/server/server_command.rb +++ b/railties/lib/rails/commands/server/server_command.rb @@ -136,7 +136,7 @@ module Rails def initialize(args, local_options, *) super - @original_options = local_options + @original_options = local_options - %w( --restart ) deprecate_positional_rack_server_and_rewrite_to_option(@original_options) @log_stdout = options[:daemon].blank? && (options[:environment] || Rails.env) == "development" end -- cgit v1.2.3