Skip to content

Commit 2a44ff1

Browse files
authored
Merge pull request rails#38524 from BKSpurgeon/master
[ci skip] Update Documentation: Add a code example and clarify docs
2 parents 3dff30c + a78c766 commit 2a44ff1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

actionpack/lib/action_controller/metal/helpers.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ module ActionController
1111
#
1212
# In previous versions of \Rails the controller will include a helper which
1313
# matches the name of the controller, e.g., <tt>MyController</tt> will automatically
14-
# include <tt>MyHelper</tt>. To return old behavior set +config.action_controller.include_all_helpers+ to +false+.
14+
# include <tt>MyHelper</tt>. You can revert to the old behavior with the following:
15+
#
16+
# # config/application.rb
17+
# class Application < Rails::Application
18+
# config.action_controller.include_all_helpers = false
19+
# end
1520
#
1621
# Additional helpers can be specified using the +helper+ class method in ActionController::Base or any
1722
# controller which inherits from it.

0 commit comments

Comments
 (0)