aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAdam Prescott <adam@aprescott.com>2014-12-29 16:25:11 -0500
committerAdam Prescott <adam@aprescott.com>2014-12-29 16:25:11 -0500
commitd0e095c89c8f930084b8a472db24af279f6fff91 (patch)
tree8908dab5cad5aad404196b51232a70c9ede2217e /guides
parent1a7ab647de4af7129533ffb87c8a5e5670f96a01 (diff)
downloadrails-d0e095c89c8f930084b8a472db24af279f6fff91.tar.gz
rails-d0e095c89c8f930084b8a472db24af279f6fff91.tar.bz2
rails-d0e095c89c8f930084b8a472db24af279f6fff91.zip
Document the include_all_helpers config setting.
This config setting has been available for quite a while but was not documented.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/configuring.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 217a64502b..0a375d7cb8 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -320,6 +320,8 @@ The schema dumper adds one additional configuration option:
* `config.action_controller.default_charset` specifies the default character set for all renders. The default is "utf-8".
+* `config.action_controller.include_all_helpers` configures whether all view helpers are available everywhere or are scoped to the corresponding controller. If set to `false`, `UsersHelper` methods are only available for views rendered as part of `UsersController`. If `true`, `UsersHelper` methods are available everywhere. The default is `true`.
+
* `config.action_controller.logger` accepts a logger conforming to the interface of Log4r or the default Ruby Logger class, which is then used to log information from Action Controller. Set to `nil` to disable logging.
* `config.action_controller.request_forgery_protection_token` sets the token parameter name for RequestForgery. Calling `protect_from_forgery` sets it to `:authenticity_token` by default.