Method: Thredded::IconHelper#define_svg_icons
- Defined in:
- app/helpers/thredded/icon_helper.rb
#define_svg_icons(*filenames) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'app/helpers/thredded/icon_helper.rb', line 16 def define_svg_icons(*filenames) return if filenames.blank? sb = filenames.map do |filename| inline_svg_once(filename, id: thredded_icon_id(filename)) end return if sb.compact.blank? content_tag :div, safe_join(sb), class: 'thredded--svg-definitions' end |