Browse files

Config guide: middlewares can also be removed from the stack

  • Loading branch information...
1 parent 225f952 commit d421b16edcd505a0b725506777c5ba71d6db6331 @radar radar committed Dec 17, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/guides/source/configuring.textile
View
6 railties/guides/source/configuring.textile
@@ -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+.

0 comments on commit d421b16

Please sign in to comment.