Sha256: a8770e1b1b289e6665688ccee69e6dbefac5de8d4b086a41eafe346b4e32d4ca

Contents?: true

Size: 299 Bytes

Versions: 7

Compression:

Stored size: 299 Bytes

Contents

module PgSearch
  class Normalizer
    def initialize(config)
      @config = config
    end

    def add_normalization(original_sql)
      normalized_sql = original_sql
      normalized_sql = "unaccent(#{normalized_sql})" if @config.ignore.include?(:accents)
      normalized_sql
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pg_search-0.2.2 lib/pg_search/normalizer.rb
pg_search-0.2.1 lib/pg_search/normalizer.rb
pg_search-0.3.1 lib/pg_search/normalizer.rb
pg_search-0.3 lib/pg_search/normalizer.rb
pg_search-0.2 lib/pg_search/normalizer.rb
pg_search-0.1.1 lib/pg_search/normalizer.rb
pg_search-0.1 lib/pg_search/normalizer.rb