From 81d103ffda236aef915ed6e76251aa02fdf7ba38 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 9 Oct 2024 10:48:22 -0700 Subject: [PATCH] Fixed previous commit for Rails 6.1 --- app/views/layouts/blazer/application.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/blazer/application.html.erb b/app/views/layouts/blazer/application.html.erb index 17a29040..30bd16f2 100644 --- a/app/views/layouts/blazer/application.html.erb +++ b/app/views/layouts/blazer/application.html.erb @@ -5,7 +5,7 @@ <%= favicon_link_tag "blazer/favicon.png" %> - <% if defined?(Propshaft::Railtie) && Rails.application.assets.is_a?(Propshaft::Assembly) %> + <% if defined?(Propshaft::Railtie) && Rails.application.try(:assets).is_a?(Propshaft::Assembly) %> <%= stylesheet_link_tag "blazer/bootstrap-propshaft", "blazer/bootstrap", "blazer/selectize", "blazer/github", "blazer/daterangepicker", "blazer/application" %> <%= javascript_include_tag "blazer/jquery", "blazer/rails-ujs", "blazer/stupidtable", "blazer/stupidtable-custom-settings", "blazer/jquery.stickytableheaders", "blazer/selectize", "blazer/highlight.min", "blazer/moment", "blazer/moment-timezone-with-data", "blazer/daterangepicker", "blazer/chart.umd", "blazer/chartjs-adapter-date-fns.bundle", "blazer/chartkick", "blazer/mapkick.bundle", "blazer/ace/ace", "blazer/ace/ext-language_tools", "blazer/ace/theme-twilight", "blazer/ace/mode-sql", "blazer/ace/snippets/text", "blazer/ace/snippets/sql", "blazer/Sortable", "blazer/bootstrap", "blazer/vue.global.prod", "blazer/routes", "blazer/queries", "blazer/fuzzysearch", "blazer/application", nonce: true %> <% else %>