method
all_helpers_from_path
v7.2.3 -
Show latest stable
- Class:
AbstractController::Helpers::Resolution
all_helpers_from_path(path)public
No documentation available.
# File actionpack/lib/abstract_controller/helpers.rb, line 48
def all_helpers_from_path(path)
helpers = Array(path).flat_map do |_path|
names = Dir["#{_path}/**/*_helper.rb"].map { |file| file[_path.to_s.size + 1..-"_helper.rb".size - 1] }
names.sort!
end
helpers.uniq!
helpers
end