aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-01-30 23:07:23 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-01-30 23:14:19 +0900
commit284f8d4970e50c1239236c22c9eb45ca7dbfb60f (patch)
tree443ac531002e0752b6423fd23088aae1a14a892b /railties/lib/rails
parent6162c49e40582bf058a6bb82ccc0cfb8f92332b6 (diff)
downloadrails-284f8d4970e50c1239236c22c9eb45ca7dbfb60f.tar.gz
rails-284f8d4970e50c1239236c22c9eb45ca7dbfb60f.tar.bz2
rails-284f8d4970e50c1239236c22c9eb45ca7dbfb60f.zip
remove unnecessary gsub for `action_cable_meta_tag`
If the specified `skip_action_cable` option, so as not to output the `action_cable_meta_tag` in template, gsub is unnecessary. ref: https://github.com/rails/rails/blob/master/railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt#L6..L8
Diffstat (limited to 'railties/lib/rails')
-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 a4758857f2..775750d86b 100644
--- a/railties/lib/rails/generators/rails/app/app_generator.rb
+++ b/railties/lib/rails/generators/rails/app/app_generator.rb
@@ -318,7 +318,6 @@ 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/, '' unless options[:api]
end
end