diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2015-12-16 19:11:35 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2015-12-16 19:11:35 +0100 |
commit | 21e0e68f47277ff5b26ab74d9c1f9460b16787bd (patch) | |
tree | c095178b0741d7ecf28b68eed9d06347648dc51b /railties/lib | |
parent | 0036cb35b882174ffae2625ffb5d7d23bf45e753 (diff) | |
download | rails-21e0e68f47277ff5b26ab74d9c1f9460b16787bd.tar.gz rails-21e0e68f47277ff5b26ab74d9c1f9460b16787bd.tar.bz2 rails-21e0e68f47277ff5b26ab74d9c1f9460b16787bd.zip |
Include the action cable URL meta tag by default
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt b/railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt index 8bb4440f55..e4a8903019 100644 --- a/railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +++ b/railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt @@ -2,6 +2,9 @@ <html> <head> <title><%= camelized %></title> + <%%= csrf_meta_tags %> + <%%= action_cable_meta_tag %> + <%- if options[:skip_javascript] -%> <%%= stylesheet_link_tag 'application', media: 'all' %> <%- else -%> @@ -13,7 +16,6 @@ <%%= javascript_include_tag 'application' %> <%- end -%> <%- end -%> - <%%= csrf_meta_tags %> </head> <body> |