aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/multibyte/chars.rb
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-06-07 22:31:42 -0400
committerwycats <wycats@gmail.com>2010-06-07 22:31:42 -0400
commit0042f4166f783085eb909d69d542b5323d8af5d6 (patch)
treed5146c78b4142d476cb861b49839b6aa910b9d63 /activesupport/lib/active_support/multibyte/chars.rb
parent94ed39d146e898f15317477c8ca61cbb4d3b97d0 (diff)
downloadrails-0042f4166f783085eb909d69d542b5323d8af5d6.tar.gz
rails-0042f4166f783085eb909d69d542b5323d8af5d6.tar.bz2
rails-0042f4166f783085eb909d69d542b5323d8af5d6.zip
If we undef <=>, it solves a problem involving comparison. Please figure out the root cause.
Diffstat (limited to 'activesupport/lib/active_support/multibyte/chars.rb')
-rw-r--r--activesupport/lib/active_support/multibyte/chars.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/multibyte/chars.rb b/activesupport/lib/active_support/multibyte/chars.rb
index 429b65bf15..d085280fe7 100644
--- a/activesupport/lib/active_support/multibyte/chars.rb
+++ b/activesupport/lib/active_support/multibyte/chars.rb
@@ -51,6 +51,8 @@ module ActiveSupport #:nodoc:
end
end
+ undef <=>
+
# Forward all undefined methods to the wrapped string.
def method_missing(method, *args, &block)
if method.to_s =~ /!$/