module Sprockets::Rails::Helper

def asset_path(source, options = {})

method checks for errors before returning path.
Computes the full URL to a asset in the public directory. This
def asset_path(source, options = {})
  unless options[:debug]
    check_errors_for(source, options)
  end
  super(source, options)
end