Module: Fonts::Rails::Extensions::ActionView::Base
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/fonts/rails/extensions/action_view/base.rb
Instance Method Summary collapse
Instance Method Details
#google_fonts_link_tag(family) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/fonts/rails/extensions/action_view/base.rb', line 8 def google_fonts_link_tag(family) tag( :link, rel: 'stylesheet', href: "#{request.protocol}fonts.googleapis.com/css?family=#{family}" ) end |