class Rails::Application
def asset_precompiled?(logical_path)
Called from asset helpers to alert you if you reference an asset URL that
def asset_precompiled?(logical_path) if precompiled_assets.include?(logical_path) true elsif !config.cache_classes # Check to see if precompile list has been updated precompiled_assets(true).include?(logical_path) else false end end
def precompiled_assets(clear_cache = false)
boot time, but ensure we cache the list so we don't recompute it for each
Lazy-load the precompile list so we don't cause asset compilation at app
def precompiled_assets(clear_cache = false) @precompiled_assets = nil if clear_cache @precompiled_assets ||= assets_manifest.find(config.assets.precompile).map(&:logical_path).to_set end