diff --git a/lib/font_awesome/sass/rails/helpers.rb b/lib/font_awesome/sass/rails/helpers.rb index 6060f486..feba53c6 100644 --- a/lib/font_awesome/sass/rails/helpers.rb +++ b/lib/font_awesome/sass/rails/helpers.rb @@ -11,6 +11,13 @@ def icon(icon, text="", html_options={}) html << " #{text}" unless text.blank? html.html_safe end + + def stacked_icon(icon1, icon2, html_options={}) + content_class = "fa-stack" + content_class << " #{html_options[:class]}" if html_options.key?(:class) + html_options[:class] = content_class + content_tag(:span, icon1+icon2, html_options).html_safe + end end end end