File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ def asset_digest_path(path, options = {})
86
86
def javascript_include_tag ( *sources )
87
87
options = sources . extract_options! . stringify_keys
88
88
89
- if request_debug_assets? && options [ "debug" ] != false
89
+ if options [ "debug" ] != false && request_debug_assets?
90
90
sources . map { |source |
91
91
if asset = lookup_asset_for_path ( source , :type => :javascript )
92
92
asset . to_a . map do |a |
@@ -108,7 +108,7 @@ def javascript_include_tag(*sources)
108
108
def stylesheet_link_tag ( *sources )
109
109
options = sources . extract_options! . stringify_keys
110
110
111
- if request_debug_assets? && options [ "debug" ] != false
111
+ if options [ "debug" ] != false && request_debug_assets?
112
112
sources . map { |source |
113
113
if asset = lookup_asset_for_path ( source , :type => :stylesheet )
114
114
asset . to_a . map do |a |
You can’t perform that action at this time.
0 commit comments