Sha256: f809e1d2abecfbadf307cf52d9a4ecebb6d4d00a0e2dd78349478f619aa49c50
Contents?: true
Size: 339 Bytes
Versions: 163
Compression:
Stored size: 339 Bytes
Contents
require "octicons_v2" require "action_view" module OcticonsV2Helper include ActionView::Helpers::TagHelper def octicon_v2(symbol, options = {}) return "" if symbol.nil? icon = OcticonsV2::OcticonV2.new(symbol, options) content_tag(:svg, icon.path.html_safe, icon.options) # rubocop:disable Rails/OutputSafety end end
Version data entries
163 entries across 163 versions & 1 rubygems