Sha256: 73dde1cdb172511190d696bf057b6c059217f4f3d05e3ffc2aa8894c6f67abcd

Contents?: true

Size: 345 Bytes

Versions: 35

Compression:

Stored size: 345 Bytes

Contents

module Workarea
  module Admin
    module FacetsHelper
      def facet_value_display_name(facet, value)
        if facet.system_name == 'tags'
          value
        elsif facet.system_name == 'upcoming_changes'
          Release.where(id: value).pluck(:name).first
        else
          value.titleize
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
workarea-admin-3.4.45 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.44 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.43 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.42 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.41 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.40 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.39 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.38 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.37 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.36 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.35 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.34 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.33 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.32 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.31 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.30 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.29 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.28 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.27 app/helpers/workarea/admin/facets_helper.rb
workarea-admin-3.4.26 app/helpers/workarea/admin/facets_helper.rb