Skip to content

Commit bf19bb9

Browse files
committed
fix no method error rescue
1 parent 1802687 commit bf19bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sprockets/rails/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def stylesheet_link_tag(*sources)
129129
# and replaced by source maps in Sprockets 3.x.
130130
def request_debug_assets?
131131
debug_assets || (defined?(controller) && controller && params[:debug_assets])
132-
rescue NoMethodError
132+
rescue
133133
return false
134134
end
135135

0 commit comments

Comments
 (0)