middleware/proxy: fixup comment/whitespace
authorEric Wong <normalperson@yhbt.net>
Mon, 21 May 2012 00:02:32 +0000 (21 00:02 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 21 May 2012 00:02:32 +0000 (21 00:02 +0000)
Noted, but not fixed in the previous commit
commit abc6dd47ede5b96ada1ff8f37dfba73cd5fd586a
(Add method_missing to Raindrops::Middleware::Proxy)

lib/raindrops/middleware/proxy.rb

index 51be3eb..ce634bb 100644 (file)
@@ -32,10 +32,9 @@ class Raindrops::Middleware::Proxy
     :close == m || @body.respond_to?(m)
   end
 
-  # Rack::BodyProxy objects use +method_missing+ to delegate methods
-  # to their bodies
+  # Avoid breaking users of non-standard extensions (e.g. #body)
+  # Rack::BodyProxy does the same.
   def method_missing(*args, &block)
     @body.send(*args, &block)
   end
-
 end