Merge pull request #38524 from BKSpurgeon/master

[ci skip] Update Documentation: Add a code example and clarify docs
This commit is contained in:
Eugene Kenny 2020-02-22 06:12:39 +00:00 committed by GitHub
commit 2a44ff12c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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., <tt>MyController</tt> will automatically
# include <tt>MyHelper</tt>. To return old behavior set +config.action_controller.include_all_helpers+ to +false+.
# include <tt>MyHelper</tt>. 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.