From 6b430295177c4689a6a5d421d575867c5da8ba2b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 May 2011 01:55:32 +0000 Subject: max_body: rdoc updates speling ficks and less confusing #initialize documentation --- lib/rainbows/max_body.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/rainbows/max_body.rb') diff --git a/lib/rainbows/max_body.rb b/lib/rainbows/max_body.rb index c70cbba..33ba572 100644 --- a/lib/rainbows/max_body.rb +++ b/lib/rainbows/max_body.rb @@ -6,7 +6,7 @@ # automatically be configured for you based on the client_max_body_size # setting. # -# For more fine-grained conrol, you may also define it per-endpoint in +# For more fine-grained control, you may also define it per-endpoint in # your Rack config.ru like this: # # map "/limit_1M" do @@ -20,11 +20,7 @@ class Rainbows::MaxBody - - # :call-seq: - # # in config.ru: - # use Rainbows::MaxBody, 4096 - # run YourApplication.new + # This is automatically called when used with Rack::Builder#use def initialize(app, limit = Rainbows.client_max_body_size) Integer === limit or raise ArgumentError, "limit not an Integer" @app, @limit = app, limit -- cgit v1.2.3-24-ge0c7