Updated

app/helpers / advanced_search_helper.rb

A
14 lines of codes
1 methods
6.2 complexity/method
3 churn
6.2 complexity
0 duplications
module AdvancedSearchHelper
  1. AdvancedSearchHelper has no descriptive comment
def search_types [ { key: :contacts, type: :contact, value: 'contact', icon: 'contact', label: t('activerecord.models.contact.other') }, { key: :deals, type: :deal, value: 'deal', icon: 'clipboard-list', label: t('activerecord.models.deal.other') }, { key: :products, type: :product, value: 'product', icon: 'box', label: t('activerecord.models.product.other') }, { key: :pipelines, type: :pipeline, value: 'pipeline', icon: 'funnel', label: t('activerecord.models.pipeline.other') }, { key: :activities, type: :activity, value: 'activity', icon: 'calendar-check-2', label: Event.human_enum_name(:kind, :activity).pluralize } ] end end