Module: Workarea::Admin::FacetsHelper
- Defined in:
- app/helpers/workarea/admin/facets_helper.rb
Instance Method Summary collapse
Instance Method Details
#facet_value_display_name(facet, value) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/helpers/workarea/admin/facets_helper.rb', line 4 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 |