diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-04-19 16:06:30 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-04-19 17:15:50 -0700 |
commit | 715db1a7973dfc02466207a913bacc4702187dad (patch) | |
tree | cf9599d41ffe802cc0457462d96050eb3fc42ca7 /activesupport/lib/active_support/core_ext/string/access.rb | |
parent | db11ef9546b1ad16cf539395b75450c1c8e9714c (diff) | |
download | rails-715db1a7973dfc02466207a913bacc4702187dad.tar.gz rails-715db1a7973dfc02466207a913bacc4702187dad.tar.bz2 rails-715db1a7973dfc02466207a913bacc4702187dad.zip |
Feature check :force_encoding instead of RUBY_VERSION
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string/access.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/access.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/access.rb b/activesupport/lib/active_support/core_ext/string/access.rb index 89999ff136..1a949c0b77 100644 --- a/activesupport/lib/active_support/core_ext/string/access.rb +++ b/activesupport/lib/active_support/core_ext/string/access.rb @@ -1,7 +1,7 @@ module ActiveSupport #:nodoc: module CoreExtensions #:nodoc: module String #:nodoc: - if RUBY_VERSION < '1.9' + unless '1.9'.respond_to?(:force_encoding) # Makes it easier to access parts of a string, such as specific characters and substrings. module Access # Returns the character at the +position+ treating the string as an array (where 0 is the first character). |