Commit 4b98f7276c1f1c5ea7c39bae0e6abe542b0358b8
1 parent
53efe441
Exists in
master
and in
29 other branches
ActionItem392: backporting change
f67b070facef6574df3c4386e3975242273fe456 from edge rails to support ruby 1.8.7 git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1854 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
vendor/rails/activesupport/lib/active_support/core_ext/string/unicode.rb
... | ... | @@ -3,6 +3,12 @@ module ActiveSupport #:nodoc: |
3 | 3 | module String #:nodoc: |
4 | 4 | # Define methods for handling unicode data. |
5 | 5 | module Unicode |
6 | + def self.included(base) | |
7 | + if '1.8.7'.respond_to?(:chars) | |
8 | + base.class_eval { remove_method :chars } | |
9 | + end | |
10 | + end | |
11 | + | |
6 | 12 | # +chars+ is a Unicode safe proxy for string methods. It creates and returns an instance of the |
7 | 13 | # ActiveSupport::Multibyte::Chars class which encapsulates the original string. A Unicode safe version of all |
8 | 14 | # the String methods are defined on this proxy class. Undefined methods are forwarded to String, so all of the | ... | ... |