aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-01-22 08:00:01 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2016-01-22 08:00:01 +0100
commit5d9e923d279f26e117d68d442e5c88a33341fe67 (patch)
tree75a94903155f2ad7480cfecc97b2009affdc83d2 /railties/lib/rails
parent24a316d15f5d9204016ae7d31a1b30fb35529028 (diff)
parentcd0d649dc4cbe0bc40871017ab48e2ede8591482 (diff)
downloadrails-5d9e923d279f26e117d68d442e5c88a33341fe67.tar.gz
rails-5d9e923d279f26e117d68d442e5c88a33341fe67.tar.bz2
rails-5d9e923d279f26e117d68d442e5c88a33341fe67.zip
Merge pull request #23174 from JuanitoFatas/followup-skip-action-cable
Remove action_cable_meta_tag when skip Action Cable
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/generators/rails/app/app_generator.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb
index 7ec4d3bbd3..9248e16585 100644
--- a/railties/lib/rails/generators/rails/app/app_generator.rb
+++ b/railties/lib/rails/generators/rails/app/app_generator.rb
@@ -318,6 +318,7 @@ module Rails
remove_file 'config/cable.yml'
remove_file 'app/assets/javascripts/cable.coffee'
remove_dir 'app/channels'
+ gsub_file 'app/views/layouts/application.html.erb', /action_cable_meta_tag/, ''
end
end