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))