Commit e445ecc30655c320a9fa74c529468ff0cdc3e468
1 parent
45077a0c
Exists in
master
and in
22 other branches
ActionItem392: fix for 1.8.7 broke 1.8.6; damn
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1857 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
vendor/rails/activesupport/lib/active_support/core_ext/string/unicode.rb
... | ... | @@ -4,7 +4,7 @@ module ActiveSupport #:nodoc: |
4 | 4 | # Define methods for handling unicode data. |
5 | 5 | module Unicode |
6 | 6 | def self.included(base) |
7 | - if '1.8.7'.respond_to?(:chars) | |
7 | + if RUBY_VERSION == '1.8.7' && '1.8.7'.respond_to?(:chars) | |
8 | 8 | base.class_eval { remove_method :chars } |
9 | 9 | end |
10 | 10 | end | ... | ... |