aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-10-22 01:33:10 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-10-22 01:35:34 +0300
commit2593ee3f49d03f70799cc77e64f4c27954c908c8 (patch)
tree8042336fc57474f3a64478e6af51d0e99d84d941 /railties
parent855ae222a9a4053c2b4f489d540bbb83cd92d95e (diff)
downloadrails-2593ee3f49d03f70799cc77e64f4c27954c908c8.tar.gz
rails-2593ee3f49d03f70799cc77e64f4c27954c908c8.tar.bz2
rails-2593ee3f49d03f70799cc77e64f4c27954c908c8.zip
Remove extra call `remove_file` on `rails new` with `--skip_action_cable`
There is no need to remove this file since the line below removes entire directory in which that file is placed.
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/app_generator.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb
index b118ea989b..1c7cf1a951 100644
--- a/railties/lib/rails/generators/rails/app/app_generator.rb
+++ b/railties/lib/rails/generators/rails/app/app_generator.rb
@@ -438,7 +438,6 @@ module Rails
def delete_action_cable_files_skipping_action_cable
if options[:skip_action_cable]
- remove_file "app/javascript/channels/consumer.js"
remove_dir "app/javascript/channels"
remove_dir "app/channels"
end