Skip to content

Commit 3aebadc

Browse files
committed
Fix javascript_include_tag/stylesheet_include_tag helpers when :debug => false is used
1 parent 868dbf0 commit 3aebadc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sprockets/rails/helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def asset_digest_path(path, options = {})
8686
def javascript_include_tag(*sources)
8787
options = sources.extract_options!.stringify_keys
8888

89-
if request_debug_assets?
89+
if request_debug_assets? && options["debug"] != false
9090
sources.map { |source|
9191
if asset = lookup_asset_for_path(source, :type => :javascript)
9292
asset.to_a.map do |a|
@@ -108,7 +108,7 @@ def javascript_include_tag(*sources)
108108
def stylesheet_link_tag(*sources)
109109
options = sources.extract_options!.stringify_keys
110110

111-
if request_debug_assets?
111+
if request_debug_assets? && options["debug"] != false
112112
sources.map { |source|
113113
if asset = lookup_asset_for_path(source, :type => :stylesheet)
114114
asset.to_a.map do |a|

0 commit comments

Comments
 (0)