Class: ArelRest::Predications::DoesNotMatchOperator
- Inherits:
-
Object
- Object
- ArelRest::Predications::DoesNotMatchOperator
- Defined in:
- lib/predications/does_not_match_operator.rb
Class Method Summary collapse
Class Method Details
.process(query) ⇒ Object
4 5 6 7 8 |
# File 'lib/predications/does_not_match_operator.rb', line 4 def process(query) table = Arel::Table.new(query[:attribute].split(".")[0]) column = query[:attribute].split(".")[1] table[column].does_not_match("%#{query[:values]}%") end |