mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Config guide: middlewares can also be removed from the stack
This commit is contained in:
parent
225f95237b
commit
d421b16edc
1 changed files with 6 additions and 0 deletions
|
@ -188,6 +188,12 @@ Middlewares can also be completely swapped out and replaced with others:
|
|||
config.middleware.swap ActionDispatch::BestStandardsSupport, Magical::Unicorns
|
||||
</ruby>
|
||||
|
||||
They can also be removed from the stack completely:
|
||||
|
||||
<ruby>
|
||||
config.middleware.delete ActionDispatch::BestStandardsSupport
|
||||
</ruby>
|
||||
|
||||
h4. Configuring i18n
|
||||
|
||||
* +config.i18n.default_locale+ sets the default locale of an application used for i18n. Defaults to +:en+.
|
||||
|
|
Loading…
Reference in a new issue