ActionController::Helpers::ClassMethods

module ActionController::Helpers::ClassMethods

Public Instance Methods

all_helpers_from_path(path) Show source
# File actionpack/lib/action_controller/metal/helpers.rb, line 96
def all_helpers_from_path(path)
  helpers = Array(path).flat_map do |_path|
    extract = /^#{Regexp.quote(_path.to_s)}\/?(.*)_helper.rb$/
    names = Dir["#{_path}/**/*_helper.rb"].map { |file| file.sub(extract, '\1') }
    names.so