class Sprockets::Context
def depend_on_asset(path)
file. Unlike `depend_on`, this will include recursively include
invalidate the dependency asset will invalidate the source
This is used for caching purposes. Any changes that would
without including it.
`depend_on_asset` allows you to state an asset dependency
def depend_on_asset(path) if asset = @environment.find_asset(resolve(path)) @dependency_paths.merge(asset.metadata[:dependency_paths]) end nil end