Removed error line for fa_icon in ApplicationHelper
• Removed: - error line for fa_icon in ApplicationHelper
This commit is contained in:
parent
33e758a80f
commit
eb8ab7c4eb
@ -52,7 +52,7 @@ module ApplicationHelper
|
|||||||
def fa_icon(icon, attributes = {})
|
def fa_icon(icon, attributes = {})
|
||||||
class_names = attributes[:class]&.split(' ') || []
|
class_names = attributes[:class]&.split(' ') || []
|
||||||
class_names << 'fa'
|
class_names << 'fa'
|
||||||
class_names += icon.split(' ').map { |cl| "fa-#{cl}" }
|
# class_names += icon.split(' ').map { |cl| "fa-#{cl}" }
|
||||||
|
|
||||||
content_tag(:i, nil, attributes.merge(class: class_names.join(' ')))
|
content_tag(:i, nil, attributes.merge(class: class_names.join(' ')))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user