diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-29 23:12:34 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-29 23:12:34 -0700 |
commit | 091965c0fc7384c17cce9e71a80f515b1139d460 (patch) | |
tree | 46a38eb4ba7a1743d18d7dfa41b27009f7f925ec /activesupport/lib/active_support/core_ext/string/conversions.rb | |
parent | db892ea77563dadb6fbbd242be78ff87321d0bd1 (diff) | |
download | rails-091965c0fc7384c17cce9e71a80f515b1139d460.tar.gz rails-091965c0fc7384c17cce9e71a80f515b1139d460.tar.bz2 rails-091965c0fc7384c17cce9e71a80f515b1139d460.zip |
Prefer behavior check to RUBY_VERSION to catch 1.8 backports
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string/conversions.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/conversions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/conversions.rb b/activesupport/lib/active_support/core_ext/string/conversions.rb index 3f05db62c3..2b9f8c70f6 100644 --- a/activesupport/lib/active_support/core_ext/string/conversions.rb +++ b/activesupport/lib/active_support/core_ext/string/conversions.rb @@ -5,7 +5,7 @@ class String # 'a'.ord == 'a'[0] for Ruby 1.9 forward compatibility. def ord self[0] - end if RUBY_VERSION < '1.9' + end unless method_defined?(:ord) # Form can be either :utc (default) or :local. def to_time(form = :utc) |