instance method
modules_for_helpers
Ruby on Rails 7.1.6
Since v3.0.20Signature
modules_for_helpers(args)
Override modules_for_helpers to accept :all as argument, which loads all helpers in helpers_path.
Parameters
-
args- A list of helpers
Returns
-
array- A normalized list of modules for the list of helpers provided.
Parameters
-
argsreq
Source
# File actionpack/lib/action_controller/metal/helpers.rb, line 104
def modules_for_helpers(args)
args += all_application_helpers if args.delete(:all)
super(args)
end
Defined in actionpack/lib/action_controller/metal/helpers.rb line 104
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Helpers::ClassMethods