aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-01-30 18:21:07 -0500
committerGeorge Claghorn <george@basecamp.com>2018-01-30 18:21:07 -0500
commit54bb2f74b5156b4251582842b0edc8e216958e01 (patch)
tree9a7ae9d42b9de1c7b93f346a0631d67e63296240 /guides/source
parentcdffab4bc7f9f6d0a46cbd31beed6b4b6dc4855a (diff)
downloadrails-54bb2f74b5156b4251582842b0edc8e216958e01.tar.gz
rails-54bb2f74b5156b4251582842b0edc8e216958e01.tar.bz2
rails-54bb2f74b5156b4251582842b0edc8e216958e01.zip
Add Rack::TempfileReaper to tests and docs
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/rails_on_rack.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/guides/source/rails_on_rack.md b/guides/source/rails_on_rack.md
index 6780e7c0de..1627205b7b 100644
--- a/guides/source/rails_on_rack.md
+++ b/guides/source/rails_on_rack.md
@@ -126,6 +126,7 @@ use ActionDispatch::ContentSecurityPolicy::Middleware
use Rack::Head
use Rack::ConditionalGet
use Rack::ETag
+use Rack::TempfileReaper
run MyApp::Application.routes
```
@@ -300,6 +301,10 @@ Much of Action Controller's functionality is implemented as Middlewares. The fol
* Adds ETag header on all String bodies. ETags are used to validate cache.
+**`Rack::TempfileReaper`**
+
+* Cleans up tempfiles used to buffer multipart requests.
+
TIP: It's possible to use any of the above middlewares in your custom Rack stack.
Resources