From e445ecc30655c320a9fa74c529468ff0cdc3e468 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 4 Jun 2008 14:29:21 +0000 Subject: [PATCH] ActionItem392: fix for 1.8.7 broke 1.8.6; damn --- vendor/rails/activesupport/lib/active_support/core_ext/string/unicode.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/rails/activesupport/lib/active_support/core_ext/string/unicode.rb b/vendor/rails/activesupport/lib/active_support/core_ext/string/unicode.rb index 844f7de..8532cc4 100644 --- a/vendor/rails/activesupport/lib/active_support/core_ext/string/unicode.rb +++ b/vendor/rails/activesupport/lib/active_support/core_ext/string/unicode.rb @@ -4,7 +4,7 @@ module ActiveSupport #:nodoc: # Define methods for handling unicode data. module Unicode def self.included(base) - if '1.8.7'.respond_to?(:chars) + if RUBY_VERSION == '1.8.7' && '1.8.7'.respond_to?(:chars) base.class_eval { remove_method :chars } end end -- libgit2 0.21.2