Class: ArelRest::Predications::NotInOperator
- Inherits:
-
Object
- Object
- ArelRest::Predications::NotInOperator
- Defined in:
- lib/predications/not_in_operator.rb
Class Method Summary collapse
Class Method Details
.process(query) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/predications/not_in_operator.rb', line 4 def process(query) values = query[:values].dup.map{|value| value==('=null=') ? nil : value} table = Arel::Table.new(query[:attribute].split(".")[0]) table[query[:attribute].split(".")[1]].not_in(values) end |