Skip to content

Commit 21eceb7

Browse files
authored
Merge pull request rails#50808 from m-nakamura145/actionpack/modules_for_helpers-example
Add example to modules_for_helpers documentation [ci-skip]
2 parents 2ddbca3 + 9306495 commit 21eceb7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

actionpack/lib/abstract_controller/helpers.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ def inherited(klass)
8282
# Given an array of values like the ones accepted by +helper+, this method
8383
# returns an array with the corresponding modules, in the same order.
8484
#
85+
# ActionController::Base.modules_for_helpers(["application", "chart", "rubygems"])
86+
# # => [ApplicationHelper, ChartHelper, RubygemsHelper]
87+
#
8588
#--
8689
# Implemented by Resolution#modules_for_helpers.
8790

0 commit comments

Comments
 (0)