From: Tom Hughes Date: Fri, 3 Sep 2010 23:23:55 +0000 (+0100) Subject: Reflect move of u_unpack from Chars to Unicode X-Git-Tag: live~6102 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/819badd55b1867185ee0bf549791901cdd473574?ds=sidebyside Reflect move of u_unpack from Chars to Unicode --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e285215b8..34f9a893c 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -14,7 +14,7 @@ module ApplicationHelper end def html_escape_unicode(text) - chars = ActiveSupport::Multibyte::Chars.u_unpack(text).map do |c| + chars = ActiveSupport::Multibyte::Unicode.u_unpack(text).map do |c| c < 127 ? c.chr : "&##{c.to_s};" end