aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
diff options
context:
space:
mode:
authorDave Riddle <david@joyvuu.com>2016-01-22 20:47:37 -0800
committerDave Riddle <david@joyvuu.com>2016-01-22 22:39:01 -0800
commit578af21a4156ff29b4c28936324c54bb1eb83d54 (patch)
treee02132389bf2ee76e67af2e408d699de7e36b5b6 /railties/lib/rails/generators
parent4fdc56d5788349522fc6d43bbab14811a9f1f29e (diff)
downloadrails-578af21a4156ff29b4c28936324c54bb1eb83d54.tar.gz
rails-578af21a4156ff29b4c28936324c54bb1eb83d54.tar.bz2
rails-578af21a4156ff29b4c28936324c54bb1eb83d54.zip
prevent --skip-action-cable from erroring when --api option is used
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r--railties/lib/rails/generators/rails/app/app_generator.rb2
1 files changed, 1 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 3d689ff37e..a4758857f2 100644
--- a/railties/lib/rails/generators/rails/app/app_generator.rb
+++ b/railties/lib/rails/generators/rails/app/app_generator.rb
@@ -318,7 +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/, ''
+ gsub_file 'app/views/layouts/application.html.erb', /action_cable_meta_tag/, '' unless options[:api]
end
end