Method: SearchableBy::Column#build_condition
- Defined in:
- lib/searchable_by/column.rb
#build_condition(value) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/searchable_by/column.rb', line 19 def build_condition(value) scope = node.not_eq(nil) case type when :int, :integer int_condition(scope, value) else str_condition(scope, value) end end |