about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-05-21 00:02:32 +0000
committerEric Wong <normalperson@yhbt.net>2012-05-21 00:02:32 +0000
commitea021e1fc14a8d7da23580767e6e6ac5db2aca9b (patch)
treed952176c039d134941b7e286ad293e3ef8389cbd
parentabc6dd47ede5b96ada1ff8f37dfba73cd5fd586a (diff)
downloadraindrops-ea021e1fc14a8d7da23580767e6e6ac5db2aca9b.tar.gz
Noted, but not fixed in the previous commit
commit abc6dd47ede5b96ada1ff8f37dfba73cd5fd586a
(Add method_missing to Raindrops::Middleware::Proxy)
-rw-r--r--lib/raindrops/middleware/proxy.rb5
1 files 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