aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/string
diff options
context:
space:
mode:
authorNorman Clarke <norman@njclarke.com>2010-07-08 17:42:14 -0300
committerJosé Valim <jose.valim@gmail.com>2010-07-08 22:59:24 +0200
commit6f83a57ac7bf77565380b26b506972cfe751b717 (patch)
treeed2b4779d2c1d4c0895c060fd265c8da3e7cb22a /activesupport/lib/active_support/core_ext/string
parent01629d180468049d17a8be6900e27a4f0d2b18c4 (diff)
downloadrails-6f83a57ac7bf77565380b26b506972cfe751b717.tar.gz
rails-6f83a57ac7bf77565380b26b506972cfe751b717.tar.bz2
rails-6f83a57ac7bf77565380b26b506972cfe751b717.zip
Improve bang method defs, make slice! operate in-place. [#5028 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string')
-rw-r--r--activesupport/lib/active_support/core_ext/string/multibyte.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/multibyte.rb b/activesupport/lib/active_support/core_ext/string/multibyte.rb
index 3dfe996d06..16ccd36458 100644
--- a/activesupport/lib/active_support/core_ext/string/multibyte.rb
+++ b/activesupport/lib/active_support/core_ext/string/multibyte.rb
@@ -2,7 +2,7 @@
require 'active_support/multibyte'
class String
- if '1.9'.respond_to?(:force_encoding)
+ if RUBY_VERSION >= "1.9"
# == Multibyte proxy
#
# +mb_chars+ is a multibyte safe proxy for string methods.