From a78c766f38052ed7701ab900f641c1296c96917b Mon Sep 17 00:00:00 2001 From: BK Date: Sat, 22 Feb 2020 12:47:20 +1100 Subject: [PATCH] [ci skip] Update Documentation: Add a code example and clarify docs --- actionpack/lib/action_controller/metal/helpers.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/actionpack/lib/action_controller/metal/helpers.rb b/actionpack/lib/action_controller/metal/helpers.rb index 9e2d89960b..5988d5c577 100644 --- a/actionpack/lib/action_controller/metal/helpers.rb +++ b/actionpack/lib/action_controller/metal/helpers.rb @@ -11,7 +11,12 @@ module ActionController # # In previous versions of \Rails the controller will include a helper which # matches the name of the controller, e.g., MyController will automatically - # include MyHelper. To return old behavior set +config.action_controller.include_all_helpers+ to +false+. + # include MyHelper. You can revert to the old behavior with the following: + # + # # config/application.rb + # class Application < Rails::Application + # config.action_controller.include_all_helpers = false + # end # # Additional helpers can be specified using the +helper+ class method in ActionController::Base or any # controller which inherits from it.