Module: Unmagic::Icon::ActionViewHelpers

Defined in:
lib/unmagic/icon/action_view_helpers.rb

Overview

View helper, registered into ActionView by the engine. Mirrors the shape a future emoji pack would use (‘unmagic_emoji`), so both share one rendering surface.

Instance Method Summary collapse

Instance Method Details

#unmagic_icon(reference, **options) ⇒ Object



9
10
11
# File 'lib/unmagic/icon/action_view_helpers.rb', line 9

def unmagic_icon(reference, **options)
  Unmagic::Icon.find(reference).render(**options)
end