FortAwesome / font-awesome-sass

Font-Awesome Sass gem for use in Ruby/Rails projects
MIT License
906 stars 265 forks source link

Pass HTML class attribute as array instead of string #154

Open smmr0 opened 6 years ago

smmr0 commented 6 years ago

With this change, you will be able to pass in the class attribute either as a string:

icon('fas', 'flag', class: 'strong underline')

…or as an array:

icon('fas', 'flag', class: ['strong', 'underline'])

This is compatible down to Rails 3.0, when support for arrays as attribute values was introduced