font_awesome5_rails 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +0,0 @@
1
- require 'font_awesome5_rails/fa_icon_parser'
2
-
3
- module FontAwesome
4
- module Rails
5
- module IconHelper
6
-
7
- def fa_icon(icon, options = {})
8
- parser = FaIconParser.new(icon, options)
9
- tags = []
10
- if parser.text.nil?
11
- tags << content_tag(:i, nil, class: parser.classes, style: parser.style, data: parser.data)
12
- else
13
- content_tag :span do
14
- tags << content_tag(:i, nil, class: parser.classes, style: parser.style, data: parser.data)
15
- tags << content_tag(:span, parser.text, style: "padding-left: 5px;#{parser.style}")
16
- end
17
- end
18
- tags.join.html_safe
19
- end
20
-
21
- end
22
- end
23
- end