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

- old
+ new

@@ -2,9 +2,13 @@ require "active_support/core_ext/module/delegation" module PgSearch module Features class TSearch < Feature + def self.valid_options + super + [:dictionary, :prefix, :negation, :any_word, :normalization, :tsvector_column] + end + def initialize(*args) super if options[:prefix] && model.connection.send(:postgresql_version) < 80400 raise PgSearch::NotSupportedForPostgresqlVersion.new(<<-MESSAGE.strip_heredoc)