Class: Workarea::Search::TermFilter
- Defined in:
- app/queries/workarea/search/term_filter.rb
Instance Attribute Summary
Attributes inherited from Filter
Instance Method Summary collapse
Methods inherited from Filter
#current_value, #display_name, #initialize, #params_for, #selected?, #system_name, #useless?, #valid_params
Constructor Details
This class inherits a constructor from Workarea::Search::Filter
Instance Method Details
#query_clause ⇒ Object
4 5 6 7 |
# File 'app/queries/workarea/search/term_filter.rb', line 4 def query_clause return {} unless current_value.present? { term: { system_name => current_value} } end |