Class: Headmin::Filter::Text
- Defined in:
- app/models/headmin/filter/text.rb
Constant Summary collapse
- OPERATORS =
%w[eq not_eq in not_in matches does_not_match starts_with ends_with is_null is_not_null starts_with ends_with]
Constants inherited from Base
Base::OPERATORS_CONVERT_TO, Base::QUERY_OPERATOR_CONVERT_TO, Base::QUERY_VALUE_CONVERT_TO
Instance Attribute Summary
Attributes inherited from Base
#attribute, #instructions, #raw_value
Instance Method Summary collapse
Methods inherited from Base
#build_query, #conditionals, #initialize, #is_i?, #operators, #query, #string, #values
Constructor Details
This class inherits a constructor from Headmin::Filter::Base
Instance Method Details
#cast_value(value) ⇒ Object
6 7 8 |
# File 'app/models/headmin/filter/text.rb', line 6 def cast_value(value) value end |
#display_value(value) ⇒ Object
10 11 12 |
# File 'app/models/headmin/filter/text.rb', line 10 def display_value(value) value.downcase end |