module Hayfork::Unaccent
Constants
- RULES
Use Postgres's own rules so this method's behavior matches Postgres's `unaccent` function.
Public Instance Methods
unaccent(string)
click to toggle source
# File lib/hayfork/unaccent.rb, line 4 def unaccent(string) string.each_char.map { |char| RULES.fetch(char, char) }.join end