We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2132ef6 commit 18dec73Copy full SHA for 18dec73
lib/font_awesome/sass/rails/helpers.rb
@@ -5,8 +5,7 @@ module ViewHelpers
5
def icon(icon, text = nil, html_options = {})
6
text, html_options = nil, text if text.is_a?(Hash)
7
8
- icons = icon.split(" ").map { |icon| "fa-#{icon}" }.join(" ")
9
- content_class = "fa #{icons}"
+ content_class = "fa #{icon.split(' ').map { |i| "fa-#{i}" }.join(' ')}"
10
content_class << " #{html_options[:class]}" if html_options.key?(:class)
11
html_options[:class] = content_class
12
0 commit comments