class Sprockets::AssetAttributes

def format_extension


# => ".js"
"foo.js.coffee"

Returns the format extension.
def format_extension
  extensions.reverse.detect { |ext|
    @environment.mime_types(ext) && !@environment.engines(ext)
  }
end