diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-21 11:21:43 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-21 11:21:43 +0000 |
commit | c95002c284add2da69845f2a9407c5dd6592cb62 (patch) | |
tree | 49e2ae91459e7dfcc091e4113fdf38c3a04096dd /activesupport/lib/active_support/multibyte | |
parent | 909b2c1acf2eb18b7a75a8cb8af0154fc948fb01 (diff) | |
download | rails-c95002c284add2da69845f2a9407c5dd6592cb62.tar.gz rails-c95002c284add2da69845f2a9407c5dd6592cb62.tar.bz2 rails-c95002c284add2da69845f2a9407c5dd6592cb62.zip |
Multibyte: String#chars returns self for Ruby 1.9
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8460 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/multibyte')
-rw-r--r-- | activesupport/lib/active_support/multibyte/chars.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/activesupport/lib/active_support/multibyte/chars.rb b/activesupport/lib/active_support/multibyte/chars.rb index 2427f8c692..65114415eb 100644 --- a/activesupport/lib/active_support/multibyte/chars.rb +++ b/activesupport/lib/active_support/multibyte/chars.rb @@ -119,14 +119,8 @@ module ActiveSupport::Multibyte #:nodoc: # +utf8_pragma+ checks if it can send this string to the handlers. It makes sure @string isn't nil and $KCODE is # set to 'UTF8'. - if RUBY_VERSION < '1.9' - def utf8_pragma? - !@string.nil? && ($KCODE == 'UTF8') - end - else - def utf8_pragma? - false - end + def utf8_pragma? + !@string.nil? && ($KCODE == 'UTF8') end end end |