lib/pg_search/features/trigram.rb in pg_search-1.0.3 vs lib/pg_search/features/trigram.rb in pg_search-1.0.4

- old
+ new

@@ -1,7 +1,10 @@ module PgSearch module Features class Trigram < Feature + def self.valid_options + super + [:threshold] + end def conditions if options[:threshold] Arel::Nodes::Grouping.new( similarity.gteq(options[:threshold])