Sha256: 439f96f6ae7149c3cc533c7fa51859eff065ab247d89e56aa295c8981b295415
Contents?: true
Size: 462 Bytes
Versions: 9
Compression:
Stored size: 462 Bytes
Contents
module FontAwesome module Sass 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
9 entries across 9 versions & 1 rubygems