From 34f89ccbf16529ba9c37504afcc91284e423e8a8 Mon Sep 17 00:00:00 2001 From: CicholGricenchos Date: Tue, 27 Feb 2018 15:15:20 +0800 Subject: [PATCH] allow_non_precompiled when config.assets.debug is true --- lib/sprockets/rails/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sprockets/rails/helper.rb b/lib/sprockets/rails/helper.rb index 01f9f7e9..c85c18d8 100644 --- a/lib/sprockets/rails/helper.rb +++ b/lib/sprockets/rails/helper.rb @@ -75,7 +75,7 @@ def assets_environment # Writes over the built in ActionView::Helpers::AssetUrlHelper#compute_asset_path # to use the asset pipeline. def compute_asset_path(path, options = {}) - debug = options[:debug] + debug = options[:debug] || debug_assets if asset_path = resolve_asset_path(path, debug) File.join(assets_prefix || "/", legacy_debug_path(asset_path, debug))