modules_for_helpers

modules_for_helpers(args)
Instance Public methods

Returns a list of modules, normalized from the acceptable kinds of helpers with the following behavior:

String or Symbol

:FooBar or âFooBarâ becomes âfoo_bar_helperâ,

and âfoo_bar_helper.rbâ is loaded using require_dependency.

Module

No further processing

After loading the appropriate files, the corresponding modules are returned.

Parameters

  • args - An array of helpers

Returns

  • Array - A normalized list of modules for the list of helpers provided.

doc_ruby_on_rails
2015-06-20 00:00:00
Comments
Leave a Comment

Please login to continue.