Sha256: 4c777d16cc867449a8242773b911028b8e5f1a8436a1a3e8e7ece9186174728b
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
module FontAwesome module Sass module Rails module ViewHelpers def icon(icon, *args) text, html_options = args html_options = text if text.is_a?(Hash) 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 end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
font-awesome-sass-4.3.2 | lib/font_awesome/sass/rails/helpers.rb |