class Sprockets::ProcessedAsset

def resolve_dependencies(environment, paths)

def resolve_dependencies(environment, paths)
  assets = []
  cache  = {}
  paths.each do |path|
    if path == self.pathname.to_s
      unless cache[self]
        cache[self] = true
        assets << self
      end
    elsif asset = environment.find_asset(path, :bundle => false)
      asset.required_assets.each do |asset_dependency|
        unless cache[asset_dependency]
          cache[asset_dependency] = true
          assets << asset_dependency
        end
      end
    end
  end
  assets
end