class Sprockets::Asset
def digest_path
"foo/bar-37b51d194a7513e45b56f6524f2d51f2.js"
Return logical path with digest spliced in.
def digest_path logical_path.sub(/\.(\w+)$/) { |ext| "-#{digest}#{ext}" } end
def digest_path logical_path.sub(/\.(\w+)$/) { |ext| "-#{digest}#{ext}" } end