module Sprockets::Resolve
def resolve_logical_path(paths, logical_path, accept, skip_bundle)
def resolve_logical_path(paths, logical_path, accept, skip_bundle) logical_name, mime_type, _ = parse_path_extnames(logical_path) parsed_accept = parse_accept_options(mime_type, accept) transformed_accepts = expand_transform_accepts(parsed_accept) filename, mime_type, deps = resolve_under_paths(paths, logical_name, transformed_accepts) if filename deps << build_file_digest_uri(filename) type = resolve_transform_type(mime_type, parsed_accept) uri = build_asset_uri(filename, type: type, skip_bundle: skip_bundle) return uri, deps else return nil, deps end end