class Sprockets::Rails::HelperAssetResolvers::Environment
def asset_path(path, digest, allow_non_precompiled = false)
Experimental RBS support (using type sampling data from the type_fusion
project).
def asset_path: (String path, true digest, ?nil allow_non_precompiled) -> String
This signature was generated using 5 samples from 3 applications.
def asset_path(path, digest, allow_non_precompiled = false) # Digests enabled? Do the work to calculate the full asset path. if digest digest_path path, allow_non_precompiled # Otherwise, ask the Sprockets environment whether the asset exists # and check whether it's also precompiled for production deploys. elsif asset = find_asset(path) raise_unless_precompiled_asset asset.logical_path unless allow_non_precompiled path end end