diff options
author | Xavier Noria <fxn@hashref.com> | 2010-04-17 15:16:38 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-04-17 15:16:38 -0700 |
commit | afcd252205d84ebf5ffd0659301c604a7beba2bb (patch) | |
tree | 3bf108c88d96c6559abc84624e2dbdd0e0348cba /activesupport/lib/active_support/core_ext/string/multibyte.rb | |
parent | 4327ad51abfddde822766702d154df11bd5b47a3 (diff) | |
download | rails-afcd252205d84ebf5ffd0659301c604a7beba2bb.tar.gz rails-afcd252205d84ebf5ffd0659301c604a7beba2bb.tar.bz2 rails-afcd252205d84ebf5ffd0659301c604a7beba2bb.zip |
removes code written for Ruby < 1.8.7
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string/multibyte.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/multibyte.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/multibyte.rb b/activesupport/lib/active_support/core_ext/string/multibyte.rb index 13208c6ee2..42e053d0f8 100644 --- a/activesupport/lib/active_support/core_ext/string/multibyte.rb +++ b/activesupport/lib/active_support/core_ext/string/multibyte.rb @@ -49,13 +49,6 @@ class String def is_utf8? ActiveSupport::Multibyte::Chars.consumes?(self) end - - unless '1.8.7 and later'.respond_to?(:chars) - def chars - ActiveSupport::Deprecation.warn('String#chars has been deprecated in favor of String#mb_chars.', caller) - mb_chars - end - end else def mb_chars #:nodoc self |