Skip to content

Commit 0042f41

Browse files
committed
If we undef <=>, it solves a problem involving comparison. Please figure out the root cause.
1 parent 94ed39d commit 0042f41

File tree

1 file changed

+2
-0
lines changed
  • activesupport/lib/active_support/multibyte

1 file changed

+2
-0
lines changed

activesupport/lib/active_support/multibyte/chars.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def initialize(string) #:nodoc:
5151
end
5252
end
5353

54+
undef <=>
55+
5456
# Forward all undefined methods to the wrapped string.
5557
def method_missing(method, *args, &block)
5658
if method.to_s =~ /!$/

0 commit comments

Comments
 (0)