Method: ActionController::Helpers::ClassMethods#modules_for_helpers

Defined in:
actionpack/lib/action_controller/metal/helpers.rb

#modules_for_helpers(args) ⇒ Object

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.



112
113
114
115
# File 'actionpack/lib/action_controller/metal/helpers.rb', line 112

def modules_for_helpers(args)
  args += all_application_helpers if args.delete(:all)
  super(args)
end