mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove outdated guide on using rack builder w/o rails middleware
[ci skip]
This commit is contained in:
parent
006f710361
commit
ea5d3544d2
1 changed files with 0 additions and 20 deletions
|
@ -318,26 +318,6 @@ Much of Action Controller's functionality is implemented as Middlewares. The fol
|
|||
|
||||
TIP: It's possible to use any of the above middlewares in your custom Rack stack.
|
||||
|
||||
### Using Rack Builder
|
||||
|
||||
The following shows how to replace use `Rack::Builder` instead of the Rails supplied `MiddlewareStack`.
|
||||
|
||||
<strong>Clear the existing Rails middleware stack</strong>
|
||||
|
||||
```ruby
|
||||
# config/application.rb
|
||||
config.middleware.clear
|
||||
```
|
||||
|
||||
<br>
|
||||
<strong>Add a `config.ru` file to `Rails.root`</strong>
|
||||
|
||||
```ruby
|
||||
# config.ru
|
||||
use MyOwnStackFromScratch
|
||||
run Rails.application
|
||||
```
|
||||
|
||||
Resources
|
||||
---------
|
||||
|
||||
|
|
Loading…
Reference in a new issue