font_awesome5_rails 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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