lib/pg_search/features/trigram.rb in pg_search-0.7.5 vs lib/pg_search/features/trigram.rb in pg_search-0.7.6
- old
+ new
@@ -1,7 +1,8 @@
module PgSearch
module Features
class Trigram < Feature
+
def conditions
if options[:threshold]
Arel::Nodes::Grouping.new(
similarity.gteq(options[:threshold])
)