Sha256: 73dd53df4899c4d9e78b43775a7cc2b393c6bc431ee17b1c2ad0bc072d7eea56
Contents?: true
Size: 462 Bytes
Versions: 5
Compression:
Stored size: 462 Bytes
Contents
module FontAwesome module Less module Rails module ViewHelpers def icon(icon, text="", html_options={}) content_class = "fa fa-#{icon}" content_class << " #{html_options[:class]}" if html_options.key?(:class) html_options[:class] = content_class html = content_tag(:i, nil, html_options) html << " #{text}" unless text.blank? html.html_safe end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems