instance method
modules_for_helpers
Ruby on Rails 3.0.20
Since v3.0.20 PrivateSignature
modules_for_helpers(args)
Overwrite modules_for_helpers to accept :all as argument, which loads all helpers in helpers_dir.
Parameters
- args<Array[String, Symbol, Module, all]>
-
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 99
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 99
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Helpers::ClassMethods