Skip to content

Commit

Permalink
Move the undef into the 1.9 only branch
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Jun 8, 2010
1 parent b97a3f3 commit 8d576b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activesupport/lib/active_support/multibyte/chars.rb
Expand Up @@ -45,14 +45,14 @@ def initialize(string)
@wrapped_string = string
@wrapped_string.force_encoding(Encoding::UTF_8) unless @wrapped_string.frozen?
end

undef <=>
else
def initialize(string) #:nodoc:
@wrapped_string = string
end
end

undef <=>

# Forward all undefined methods to the wrapped string.
def method_missing(method, *args, &block)
if method.to_s =~ /!$/
Expand Down

0 comments on commit 8d576b5

Please sign in to comment.