Module: Arel::TSPredications
- Defined in:
- lib/arel/ts_predications.rb
Instance Method Summary collapse
Instance Method Details
#ts_query(expression, language = nil) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/arel/ts_predications.rb', line 4 def ts_query(expression, language=nil) vector = Arel::Nodes::TSVector.new(self, language: language) query = Arel::Nodes::TSQuery.new(expression, language: language) Arel::Nodes::TSMatch.new(vector, query) end |