aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/configuring.textile
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-12-17 15:38:41 +1000
committerRyan Bigg <radarlistener@gmail.com>2010-12-17 16:24:47 +1000
commitd421b16edcd505a0b725506777c5ba71d6db6331 (patch)
treec9753d75ecd7b73cb3351e9e735cec89f2e23d25 /railties/guides/source/configuring.textile
parent225f95237be713b50bce790eae8b6e511080b744 (diff)
downloadrails-d421b16edcd505a0b725506777c5ba71d6db6331.tar.gz
rails-d421b16edcd505a0b725506777c5ba71d6db6331.tar.bz2
rails-d421b16edcd505a0b725506777c5ba71d6db6331.zip
Config guide: middlewares can also be removed from the stack
Diffstat (limited to 'railties/guides/source/configuring.textile')
-rw-r--r--railties/guides/source/configuring.textile6
1 files changed, 6 insertions, 0 deletions
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
</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+.