A platform for community discussion. Free, open, simple.
DEV: Remove asset precompilation hack (#17428)
Jarek Radosz162a1f8ba765
diff --git a/config/application.rb b/config/application.rbindex c46b011fb0b..f31b720b854 100644--- a/config/application.rb+++ b/config/application.rb@@ -243,18 +243,6 @@ module Discourse# we got to clear the pool in case plugins connectActiveRecord::Base.connection_handler.clear_active_connections!-- # This nasty hack is required for not precompiling QUnit assets- # in test mode. see: https://github.com/rails/sprockets-rails/issues/299#issuecomment-167701012- ActiveSupport.on_load(:action_view) do- default_checker = ActionView::Base.precompiled_asset_checker-- ActionView::Base.precompiled_asset_checker = -> logical_path do- default_checker[logical_path] ||- logical_path =~ /\/node_modules/ ||- logical_path =~ /\/dist/- end- endendif ENV['RBTRACE'] == "1"