Add the style parameter

This commit is contained in:
Jyri-Petteri Paloposki 2020-08-19 11:54:50 +03:00
parent 8c2c165480
commit ea6c11c3a4
3 changed files with 9 additions and 9 deletions

View file

@ -1,7 +1,7 @@
module IconHelper
include FontAwesome::Sass::Rails::ViewHelpers
def icon_fw(icon, text = nil, html_options = {})
def icon_fw(style, name, text = nil, html_options = {})
text, html_options = nil, text if text.is_a?(Hash)
if html_options.key?(:class)
@ -10,6 +10,6 @@ module IconHelper
html_options[:class] = "fa-fw"
end
icon(icon, text, html_options)
icon(style, name, text, html_options)
end
end