Skip to content

Commit

Permalink
Config guide: middlewares can also be removed from the stack
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Dec 17, 2010
1 parent 225f952 commit d421b16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions railties/guides/source/configuring.textile
Expand Up @@ -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+.
Expand Down

0 comments on commit d421b16

Please sign in to comment.