mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
DEV: Remove asset precompilation hack (#17428)
I don't think it's needed anymore?
This commit is contained in:
parent
365f558bda
commit
162a1f8ba7
@ -243,18 +243,6 @@ module Discourse
|
||||
|
||||
# we got to clear the pool in case plugins connect
|
||||
ActiveRecord::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
|
||||
end
|
||||
end
|
||||
|
||||
if ENV['RBTRACE'] == "1"
|
||||
|
Loading…
Reference in New Issue
Block a user