aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-03 22:16:04 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-03 22:16:04 -0300
commit026e0d1c4df68c3471a93b0f9d90a581d1511bd1 (patch)
treec7c53e909758fd3eec23f7c8141d08713567df0f
parente608588d3a8dce80d62d78d88d6dea4008bf0d37 (diff)
downloadrails-026e0d1c4df68c3471a93b0f9d90a581d1511bd1.tar.gz
rails-026e0d1c4df68c3471a93b0f9d90a581d1511bd1.tar.bz2
rails-026e0d1c4df68c3471a93b0f9d90a581d1511bd1.zip
Remove vestiges of the http_only! config from configuring guide
-rw-r--r--guides/source/configuring.textile8
1 files changed, 0 insertions, 8 deletions
diff --git a/guides/source/configuring.textile b/guides/source/configuring.textile
index 68426221bf..f17912e63c 100644
--- a/guides/source/configuring.textile
+++ b/guides/source/configuring.textile
@@ -248,14 +248,6 @@ They can also be removed from the stack completely:
config.middleware.delete ActionDispatch::BestStandardsSupport
</ruby>
-In addition to these methods to handle the stack, if your application is going to be used as an API endpoint only, the middleware stack can be configured like this:
-
-<ruby>
-config.middleware.http_only!
-</ruby>
-
-By doing this, Rails will create a smaller middleware stack, by not adding some middlewares that are usually useful for browser access only, such as Cookies, Session and Flash, BestStandardsSupport, and MethodOverride. You can always add any of them later manually if you want. Refer to the "API App docs":api_app.html for more info on how to setup your application for API only apps.
-
h4. Configuring i18n
* +config.i18n.default_locale+ sets the default locale of an application used for i18n. Defaults to +:en+.