class Sprockets::AssetAttributes

def search_paths

Returns paths search the load path for.
def search_paths
  paths = [pathname.to_s]
  if pathname.basename(extensions.join).to_s != 'index'
    path_without_extensions = extensions.inject(pathname) { |p, ext| p.sub(ext, '') }
    index_path = path_without_extensions.join("index#{extensions.join}").to_s
    paths << index_path
  end
  paths
end