Skip to content
This repository
Browse code

Remove vestiges of the http_only! config from configuring guide

  • Loading branch information...
commit 026e0d1c4df68c3471a93b0f9d90a581d1511bd1 1 parent e608588
Carlos Antonio da Silva authored May 03, 2012

Showing 1 changed file with 0 additions and 8 deletions. Show diff stats Hide diff stats

  1. 8  guides/source/configuring.textile
8  guides/source/configuring.textile
Source Rendered
@@ -248,14 +248,6 @@ They can also be removed from the stack completely:
248 248
 config.middleware.delete ActionDispatch::BestStandardsSupport
249 249
 </ruby>
250 250
 
251  
-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:
252  
-
253  
-<ruby>
254  
-config.middleware.http_only!
255  
-</ruby>
256  
-
257  
-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.
258  
-
259 251
 h4. Configuring i18n
260 252
 
261 253
 * +config.i18n.default_locale+ sets the default locale of an application used for i18n. Defaults to +:en+.

0 notes on commit 026e0d1

Please sign in to comment.
Something went wrong with that request. Please try again.