lib/pg_search/normalizer.rb in pg_search-1.0.4 vs lib/pg_search/normalizer.rb in pg_search-1.0.5
- old
+ new
@@ -2,10 +2,10 @@
class Normalizer
def initialize(config)
@config = config
end
- def add_normalization(sql_expression)
+ def add_normalization(sql_expression) # rubocop:disable Metrics/AbcSize
return sql_expression unless config.ignore.include?(:accents)
if config.postgresql_version < 90000
raise PgSearch::NotSupportedForPostgresqlVersion.new(<<-MESSAGE.strip_heredoc)
Sorry, {:ignoring => :accents} only works in PostgreSQL 9.0 and above.