method

resolve_link_as

rails latest stable - Class: ActionView::Helpers::AssetTagHelper
resolve_link_as(extname, mime_type)
private

No documentation available.

# File actionview/lib/action_view/helpers/asset_tag_helper.rb, line 628
        def resolve_link_as(extname, mime_type)
          case extname
          when "js"  then "script"
          when "css" then "style"
          when "vtt" then "track"
          else
            mime_type.to_s.split("/").first.presence_in(%(audio video font image))
          end
        end