class Sprockets::Asset

def relativize_root_path(path)

Replace actual environment root with `$root` placeholder.
def relativize_root_path(path)
  environment.attributes_for(path).relativize_root
end