Module: Workarea::Admin::SearchCustomizationsHelper

Defined in:
app/helpers/workarea/admin/search_customizations_helper.rb

Instance Method Summary collapse

Instance Method Details

#icon_for_search_middleware_status(status) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'app/helpers/workarea/admin/search_customizations_helper.rb', line 4

def icon_for_search_middleware_status(status)
  if status == :ignore
    '✗'
  elsif status == :last
    '✓'
  else
    '↓'
  end
end

#search_middleware_display_name(klass) ⇒ Object



14
15
16
# File 'app/helpers/workarea/admin/search_customizations_helper.rb', line 14

def search_middleware_display_name(klass)
  klass.name.demodulize.underscore.humanize
end