Skip to content

Commit 8a4c89e

Browse files
author
Dan Kang
committed
don't check for required assets in precompile array in debug mode
1 parent 11db2ff commit 8a4c89e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/sprockets/rails/helper.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ def compute_asset_path(path, options = {})
7070
# Computes the full URL to a asset in the public directory. This
7171
# method checks for errors before returning path.
7272
def asset_path(source, options = {})
73-
check_errors_for(source, options)
73+
unless options[:debug]
74+
check_errors_for(source, options)
75+
end
7476
super(source, options)
7577
end
7678
alias :path_to_asset :asset_path

0 commit comments

Comments
 (0)