diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-12-29 18:26:32 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-12-29 18:26:32 -0300 |
commit | 8cde29211d4ceef8cb745e84b6e637a6fc69549d (patch) | |
tree | 1f1a502cdf177f0f5efd9256191101d9edcfcb3a | |
parent | f29276244f611ee83ce620acc727691516ad8581 (diff) | |
parent | d0e095c89c8f930084b8a472db24af279f6fff91 (diff) | |
download | rails-8cde29211d4ceef8cb745e84b6e637a6fc69549d.tar.gz rails-8cde29211d4ceef8cb745e84b6e637a6fc69549d.tar.bz2 rails-8cde29211d4ceef8cb745e84b6e637a6fc69549d.zip |
Merge pull request #18246 from aprescott/document-include_all_helpers-setting
Document the include_all_helpers config setting
-rw-r--r-- | guides/source/configuring.md | 2 |
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. |