Sha256: 64c9dd5687c1d5849b1fb4239268c7661d4edc49f305d2494c95556cf422ac87
Contents?: true
Size: 538 Bytes
Versions: 24
Compression:
Stored size: 538 Bytes
Contents
module FontAwesome module Sass module Rails module ViewHelpers def icon(style, name, text = nil, html_options = {}) text, html_options = nil, text if text.is_a?(Hash) content_class = "#{style} fa-#{name}" content_class << " #{html_options[:class]}" if html_options.key?(:class) html_options[:class] = content_class html = content_tag(:i, nil, html_options) html << ' ' << text.to_s unless text.blank? html end end end end end
Version data entries
24 entries across 24 versions & 2 rubygems