Add example to modules_for_helpers documentation [ci-skip]

This commit is contained in:
m-nakamura145 2024-01-19 20:22:13 +09:00
parent 9c3ffab47c
commit 930649598f
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,9 @@ module AbstractController
# Given an array of values like the ones accepted by +helper+, this method
# returns an array with the corresponding modules, in the same order.
#
# ActionController::Base.modules_for_helpers(["application", "chart", "rubygems"])
# # => [ApplicationHelper, ChartHelper, RubygemsHelper]
#
#--
# Implemented by Resolution#modules_for_helpers.