diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-09 01:55:32 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-09 01:56:08 +0000 |
commit | 6b430295177c4689a6a5d421d575867c5da8ba2b (patch) | |
tree | 8c6fb9018eb8f5f5284762dfe0ba06f0ee3122b2 /lib | |
parent | 9afcdde9a92f817330e4dfd5e1ef77a7bf461253 (diff) | |
download | rainbows-6b430295177c4689a6a5d421d575867c5da8ba2b.tar.gz |
speling ficks and less confusing #initialize documentation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rainbows/max_body.rb | 8 |
1 files changed, 2 insertions, 6 deletions
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 |