module Sprockets::Resolve
def resolve_absolute_path(paths, filename, accept, skip_bundle)
def resolve_absolute_path(paths, filename, accept, skip_bundle) deps = Set.new filename = File.expand_path(filename) # Ensure path is under load paths return nil, deps unless paths_split(paths, filename) mime_type = parse_path_extnames(filename)[1] type = resolve_transform_type(mime_type, accept) return nil, deps if accept && !type return nil, deps unless file?(filename) uri = build_asset_uri(filename, type: type, skip_bundle: skip_bundle) deps << build_file_digest_uri(filename) return uri, deps end