Sha256: 8ba2cee891982a776ef06a9689a99c904aa1dc653ec6e22fb4c4595cc59ace2c
Contents?: true
Size: 209 Bytes
Versions: 2
Compression:
Stored size: 209 Bytes
Contents
module Typekit module ViewHelper def typekit(kit_id) return if kit_id == '- YOUR KIT ID HERE -' content_tag :script, nil, src: "//use.typekit.com/#{kit_id}.js", async: true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typekit-rails-0.0.3 | app/helpers/typekit/view_helper.rb |
typekit-rails-0.0.2 | app/helpers/typekit/view_helper.rb |