diff options
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/string.rb b/activesupport/lib/active_support/core_ext/string.rb index b9f075522f..ef2f334fe2 100644 --- a/activesupport/lib/active_support/core_ext/string.rb +++ b/activesupport/lib/active_support/core_ext/string.rb @@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/string/inflections' require File.dirname(__FILE__) + '/string/conversions' require File.dirname(__FILE__) + '/string/access' require File.dirname(__FILE__) + '/string/starts_ends_with' -require File.dirname(__FILE__) + '/string/iterators' +require File.dirname(__FILE__) + '/string/iterators' unless 'test'.respond_to?(:each_char) require File.dirname(__FILE__) + '/string/unicode' class String #:nodoc: @@ -10,6 +10,8 @@ class String #:nodoc: include ActiveSupport::CoreExtensions::String::Conversions include ActiveSupport::CoreExtensions::String::Inflections include ActiveSupport::CoreExtensions::String::StartsEndsWith - include ActiveSupport::CoreExtensions::String::Iterators + if defined? ActiveSupport::CoreExtensions::String::Iterators + include ActiveSupport::CoreExtensions::String::Iterators + end include ActiveSupport::CoreExtensions::String::Unicode end |