From ea021e1fc14a8d7da23580767e6e6ac5db2aca9b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 21 May 2012 00:02:32 +0000 Subject: middleware/proxy: fixup comment/whitespace Noted, but not fixed in the previous commit commit abc6dd47ede5b96ada1ff8f37dfba73cd5fd586a (Add method_missing to Raindrops::Middleware::Proxy) --- lib/raindrops/middleware/proxy.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/raindrops/middleware/proxy.rb b/lib/raindrops/middleware/proxy.rb index 51be3eb..ce634bb 100644 --- a/lib/raindrops/middleware/proxy.rb +++ b/lib/raindrops/middleware/proxy.rb @@ -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 -- cgit v1.2.3-24-ge0c7