Sha256: 52f0d9d1aeb7b727da2b4cfd5c4b7aee0605c84d682247b123dcb9f6cbd7bdc1
Contents?: true
Size: 279 Bytes
Versions: 34
Compression:
Stored size: 279 Bytes
Contents
module Workarea module Admin::ProductsHelper def format_variant_options(hash) hash.map do |name, value| joined = value.is_a?(Array) ? value.join(', ') : value "#{content_tag(:strong, name)}: #{joined}" end.join(', ').html_safe end end end
Version data entries
34 entries across 34 versions & 1 rubygems