Class: PredicateStringInput
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- PredicateStringInput
- Defined in:
- app/inputs/predicate_string_input.rb
Constant Summary collapse
- PREDICATE_OPTIONS =
[ ['Contains', 'cont'], ['Equals', 'eq'], ['Starts With', 'start'], ['Ends With', 'end'] ].freeze
Instance Method Summary collapse
Instance Method Details
#input(_wrapper_options) ⇒ Object
9 10 11 12 13 14 |
# File 'app/inputs/predicate_string_input.rb', line 9 def input() template.content_tag(:div, class: 'input-group flex-nowrap w-100') do template.concat predicate_select template.concat value_field end end |