Move the undef into the 1.9 only branch

This commit is contained in:
wycats
2010-06-07 23:32:20 -04:00
parent b97a3f33a3
commit 8d576b51a1

View File

@@ -45,14 +45,14 @@ module ActiveSupport #:nodoc:
@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 =~ /!$/