mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
allow_concurrency is a "global" configuration option in Rails 3
This commit is contained in:
parent
dc4dcb1555
commit
70abf78800
1 changed files with 2 additions and 2 deletions
|
@ -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+.
|
||||||
|
@ -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".
|
||||||
|
|
Loading…
Reference in a new issue