We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11db2ff commit 8a4c89eCopy full SHA for 8a4c89e
lib/sprockets/rails/helper.rb
@@ -70,7 +70,9 @@ def compute_asset_path(path, options = {})
70
# Computes the full URL to a asset in the public directory. This
71
# method checks for errors before returning path.
72
def asset_path(source, options = {})
73
- check_errors_for(source, options)
+ unless options[:debug]
74
+ check_errors_for(source, options)
75
+ end
76
super(source, options)
77
end
78
alias :path_to_asset :asset_path
0 commit comments