Reflect move of u_unpack from Chars to Unicode
authorTom Hughes <tom@compton.nu>
Fri, 3 Sep 2010 23:23:55 +0000 (00:23 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 14 Nov 2011 09:42:43 +0000 (09:42 +0000)
app/helpers/application_helper.rb

index e285215b8d85a01c81bc7eabb93d58ba233ff774..34f9a893cdbec9e7aacd574a83353f176219f488 100644 (file)
@@ -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