From d421b16edcd505a0b725506777c5ba71d6db6331 Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Fri, 17 Dec 2010 15:38:41 +1000 Subject: Config guide: middlewares can also be removed from the stack --- railties/guides/source/configuring.textile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index 33319fa40a..96b279ed8d 100644 --- a/railties/guides/source/configuring.textile +++ b/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 +They can also be removed from the stack completely: + + + config.middleware.delete ActionDispatch::BestStandardsSupport + + h4. Configuring i18n * +config.i18n.default_locale+ sets the default locale of an application used for i18n. Defaults to +:en+. -- cgit v1.2.3