Sha256: 1bfd31b8026f70d197181716668c5dd57e1a0782b8bdf89f3c94e7da52389a4a
Contents?: true
Size: 323 Bytes
Versions: 32
Compression:
Stored size: 323 Bytes
Contents
class TagListRenderer < ResourceRenderer::AttributeRenderer::Base def display(attribute_name, _label, _options = {}, &_block) tag_list = value_for_attribute(attribute_name) output = tag_list.collect do |tag| h.content_tag(:span, tag, class: 'label label-default') end.join(' ').html_safe end end
Version data entries
32 entries across 32 versions & 2 rubygems