templates/rails/app/views/layouts/application.html.erb.tt in make_it_so-0.3.8 vs templates/rails/app/views/layouts/application.html.erb.tt in make_it_so-0.4.0
- old
+ new
@@ -49,8 +49,16 @@
<%%- end -%>
<%%= yield %>
<%%= javascript_include_tag 'application' %>
+ <% if options[:react] %>
+ <%%- if Rails.env.development? || Rails.env.test? -%>
+ <%%= javascript_tag do %>
+ window.railsEnv = '<%%= Rails.env %>'
+ <%%- end -%>
+ <%%- end -%>
+ <%%= javascript_pack_tag 'application' %>
+ <% end %>
<%%= yield :extra_footer %>
</body>
</html>