Module: Rubicons::FontAwesome5::RailsHelper

Included in:
Phlex
Defined in:
lib/rubicons/font_awesome5/rails_helper.rb

Overview

Rails view helper for Font Awesome 5 icons

Instance Method Summary collapse

Instance Method Details

#fa5_icon(name, options = {}) ⇒ Object



7
8
9
# File 'lib/rubicons/font_awesome5/rails_helper.rb', line 7

def fa5_icon(name, options = {})
  Rubicons::FontAwesome5.icon(name, **options).html_safe
end

#fa5_icon!(name, options = {}) ⇒ Object



11
12
13
# File 'lib/rubicons/font_awesome5/rails_helper.rb', line 11

def fa5_icon!(name, options = {})
  Rubicons::FontAwesome5.icon!(name, **options).html_safe
end