all_application_helpers()
private
Extract helper names
from files in app/helpers/**/*_helper.rb
# File actionpack/lib/action_controller/metal/helpers.rb, line 105
def all_application_helpers
helpers = []
Array.wrap(helpers_path).each do |path|
extract = /^#{Regexp.quote(path.to_s)}\/?(.*)_helper.rb$/
helpers += Dir["#{path}/**/*_helper.rb"].map { |file| file.sub(extract, '\1') }
end
helpers.sort!
helpers.uniq!
helpers
end