class Sprockets::ProcessedAsset
def build_dependency_paths(environment, context)
def build_dependency_paths(environment, context) dependency_paths = {} context._dependency_paths.each do |path| dep = DependencyFile.new(path, environment.stat(path).mtime, environment.file_digest(path).hexdigest) dependency_paths[dep] = true end context._dependency_assets.each do |path| if path == self.pathname.to_s dep = DependencyFile.new(pathname, environment.stat(path).mtime, environment.file_digest(path).hexdigest) dependency_paths[dep] = true elsif asset = environment.find_asset(path, :bundle => false) asset.dependency_paths.each do |d| dependency_paths[d] = true end end end @dependency_paths = dependency_paths.keys end