Permalink
Browse files

allow_concurrency is a "global" configuration option in Rails 3

  • Loading branch information...
1 parent dc4dcb1 commit 70abf788001ed9fa83d3e3e3f2e8520df1ab8b46 @radar radar committed Nov 29, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/configuring.textile
@@ -47,6 +47,8 @@ h4. Rails General Configuration
end
</ruby>
+* +config.allow_concurrency+ should be set to +true+ to allow concurrent (threadsafe) action processing. Set to +false+ by default. You probably don't want to call this one directly, though, because a series of other adjustments need to be made for threadsafe mode to work properly. Can also be enabled with +threadsafe!+.
+
* +config.app_generators+ alternate name for +config.generators+. See the "Configuring Generators" section below for how to use this.
* +config.autoload_once_paths+ accepts an array of paths from which Rails will automatically load from only once. All elements of this array must also be in +autoload_paths+.
@@ -208,8 +210,6 @@ h4. Configuring Action Controller
* +config.action_controller.consider_all_requests_local+ is generally set to +true+ during development and +false+ during production; if it is set to +true+, then any error will cause detailed debugging information to be dumped in the HTTP response. For finer-grained control, set this to +false+ and implement +local_request?+ to specify which requests should provide debugging information on errors.
-* +config.action_controller.allow_concurrency+ should be set to +true+ to allow concurrent (threadsafe) action processing. Set to +false+ by default. You probably don't want to call this one directly, though, because a series of other adjustments need to be made for threadsafe mode to work properly. Instead, you should simply call +config.threadsafe!+ inside your +production.rb+ file, which makes all the necessary adjustments.
-
WARNING: Threadsafe operation is incompatible with the normal workings of development mode Rails. In particular, automatic dependency loading and class reloading are automatically disabled when you call +config.threadsafe!+.
* +config.action_controller.default_charset+ specifies the default character set for all renders. The default is "utf-8".

0 comments on commit 70abf78

Please sign in to comment.