diff --git a/activesupport/lib/active_support/core_ext/string/unicode.rb b/activesupport/lib/active_support/core_ext/string/unicode.rb index 1f5077350511cc4485665d3b86f309a91e00dedf..ba16d4d86670e46ac93d8f5afceebd330c2046ae 100644 --- a/activesupport/lib/active_support/core_ext/string/unicode.rb +++ b/activesupport/lib/active_support/core_ext/string/unicode.rb @@ -4,10 +4,11 @@ module String #:nodoc: unless '1.9'.respond_to?(:force_encoding) # Define methods for handling unicode data. module Unicode - def self.included(base) + def self.append_features(base) if '1.8.7'.respond_to?(:chars) base.class_eval { remove_method :chars } end + super end # +chars+ is a Unicode safe proxy for string methods. It creates and returns an instance of the