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
This commit is contained in:
yuuji.yaginuma 2016-01-30 23:07:23 +09:00
parent 6162c49e40
commit 284f8d4970
1 changed files with 0 additions and 1 deletions

View File

@ -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