aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/string/unicode.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-04-19 16:06:30 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-04-19 17:15:50 -0700
commit715db1a7973dfc02466207a913bacc4702187dad (patch)
treecf9599d41ffe802cc0457462d96050eb3fc42ca7 /activesupport/lib/active_support/core_ext/string/unicode.rb
parentdb11ef9546b1ad16cf539395b75450c1c8e9714c (diff)
downloadrails-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/unicode.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/string/unicode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/unicode.rb b/activesupport/lib/active_support/core_ext/string/unicode.rb
index 0e9770af25..963920d4a6 100644
--- a/activesupport/lib/active_support/core_ext/string/unicode.rb
+++ b/activesupport/lib/active_support/core_ext/string/unicode.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)
# Define methods for handling unicode data.
module Unicode
# +chars+ is a Unicode safe proxy for string methods. It creates and returns an instance of the