lib/pg_search/normalizer.rb in pg_search-2.3.6 vs lib/pg_search/normalizer.rb in pg_search-2.3.7

- old
+ new

@@ -8,14 +8,14 @@ def add_normalization(sql_expression) return sql_expression unless config.ignore.include?(:accents) sql_node = case sql_expression - when Arel::Nodes::Node - sql_expression - else - Arel.sql(sql_expression) - end + when Arel::Nodes::Node + sql_expression + else + Arel.sql(sql_expression) + end Arel::Nodes::NamedFunction.new( PgSearch.unaccent_function, [sql_node] ).to_sql