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