Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
allow_concurrency is a "global" configuration option in Rails 3
  • Loading branch information
radar committed Nov 29, 2010
1 parent dc4dcb1 commit 70abf78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/guides/source/configuring.textile
Expand Up @@ -47,6 +47,8 @@ h4. Rails General Configuration
end end
</ruby> </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.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+. * +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+.
Expand Down Expand Up @@ -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.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!+. 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". * +config.action_controller.default_charset+ specifies the default character set for all renders. The default is "utf-8".
Expand Down

0 comments on commit 70abf78

Please sign in to comment.