Permalink
Browse files

Use existing --skip-turbolinks option for conditionals instead of che…

…cking if turbolinks is present in gemfile list
  • Loading branch information...
guilleiguaran committed Nov 20, 2016
1 parent 20db1da commit 03fc9a49309d807bc3f83c3ad6ac33acb0053ae3
@@ -13,7 +13,7 @@
<% unless options[:skip_javascript] -%>
//= require <%= options[:javascript] %>
//= require <%= options[:javascript] %>_ujs
<% if gemfile_entries.any? { |m| m.name == "turbolinks" } -%>
<% unless options[:skip_turbolinks] -%>
//= require turbolinks
<% end -%>
<% end -%>
@@ -7,7 +7,7 @@
<%- if options[:skip_javascript] -%>
<%%= stylesheet_link_tag 'application', media: 'all' %>
<%- else -%>
<%- if gemfile_entries.any? { |m| m.name == 'turbolinks' } -%>
<%- unless options[:skip_turbolinks] -%>
<%%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
<%- else -%>

0 comments on commit 03fc9a4

Please sign in to comment.