lib/pg_search/normalizer.rb in pg_search-0.6.0 vs lib/pg_search/normalizer.rb in pg_search-0.6.1
- old
+ new
@@ -6,10 +6,10 @@
def add_normalization(sql_expression)
return sql_expression unless config.ignore.include?(:accents)
if config.postgresql_version < 90000
- raise PgSearch::NotSupportedForPostgresqlVersion.new(<<-MESSAGE.gsub /^\s*/, '')
+ raise PgSearch::NotSupportedForPostgresqlVersion.new(<<-MESSAGE.strip_heredoc)
Sorry, {:ignoring => :accents} only works in PostgreSQL 9.0 and above.
#{config.inspect}
MESSAGE
end