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