Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use append_features instead of included to get the inclusion order right

  • Loading branch information...
commit 59f5d4fc79b72a2bf0f7ffada4a1a73eb303d943 1 parent 3b93ca2
@jeremy jeremy authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  activesupport/lib/active_support/core_ext/string/unicode.rb
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.