Sha256: b1920bbd020a668e448774d4e13c31797a818e57997e13907a82383ae3b32118

Contents?: true

Size: 269 Bytes

Versions: 62

Compression:

Stored size: 269 Bytes

Contents

module Workarea
  module DetailsHelper
    def formatted_item_details(details)
      details
        .map do |name, value|
          joined = value.is_a?(Array) ? value.join(', ') : value
          "#{name}: #{joined}"
        end
        .join(', ')
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.13 app/helpers/workarea/details_helper.rb
workarea-core-3.4.12 app/helpers/workarea/details_helper.rb