Flowdock
method

resolve_link_as

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ActionView::Helpers::AssetTagHelper
resolve_link_as(extname, mime_type) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/helpers/asset_tag_helper.rb, line 532
        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
Register or log in to add new notes.