From 9c010026c19febc31255fee724feb7032ea736c9 Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Sat, 26 Mar 2016 10:45:13 +0530 Subject: [PATCH] development.rb file always exists so we don't need a check for it --- railties/lib/rails/generators/rails/app/app_generator.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index d6be69e16c..f58e6ba653 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -95,13 +95,10 @@ module Rails action_cable_config_exist = File.exist?('config/cable.yml') ssl_options_exist = File.exist?('config/initializers/ssl_options.rb') rack_cors_config_exist = File.exist?('config/initializers/cors.rb') - development_config_exist = File.exist?('config/environments/development.rb') config - if development_config_exist - gsub_file 'config/environments/development.rb', /^(\s+)config\.file_watcher/, '\1# config.file_watcher' - end + gsub_file 'config/environments/development.rb', /^(\s+)config\.file_watcher/, '\1# config.file_watcher' unless callback_terminator_config_exist remove_file 'config/initializers/callback_terminator.rb'