Skip to content

A platform for community discussion. Free, open, simple.

PERF: apply sprockets patch in a test environment (#11034)

Krzysztof Kotlarek61f6f53dabc4
diff --git a/lib/freedom_patches/sprockets_patches.rb b/lib/freedom_patches/sprockets_patches.rb
index 0269580d776..eb85a23ca60 100644
--- a/lib/freedom_patches/sprockets_patches.rb
+++ b/lib/freedom_patches/sprockets_patches.rb
@@ -8,7 +8,7 @@
# 2. Stop using a concatenator that does tons of work checking for semicolons when
# when rebuilding an asset
-if Rails.env == "development"
+if Rails.env.development? || Rails.env.test?
module ActionView::Helpers::AssetUrlHelper
def asset_path(source, options = {})