class PgSearch::Features::DMetaphone::Normalizer

Decorates a normalizer with dmetaphone processing.

def add_normalization(original_sql)

def add_normalization(original_sql)
  otherwise_normalized_sql = Arel.sql(
    normalizer_to_wrap.add_normalization(original_sql)
  )
  Arel::Nodes::NamedFunction.new(
    "pg_search_dmetaphone",
    [otherwise_normalized_sql]
  ).to_sql
end

def initialize(normalizer_to_wrap)

def initialize(normalizer_to_wrap)
  @normalizer_to_wrap = normalizer_to_wrap
end