Module: Esvg::Helpers
- Defined in:
- lib/esvg/helpers.rb
Instance Method Summary collapse
Instance Method Details
#embed_svgs(*keys) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/esvg/helpers.rb', line 3 def (*keys) if Rails.env.production? Esvg.build_paths(keys).map { |path| javascript_include_tag(path, async: true) }.join("\n").html_safe else Esvg.(keys) end end |