ThibautGoing open source18986c113 years agoHistory
10 lines · 276 B · Ruby
RawDownload
module Docs  module AutoloadHelper    def autoload_all(path, suffix = '')      Dir["#{Docs.root_path}/#{path}/**/*.rb"].each do |file|        name = File.basename(file, '.rb') + (suffix ? "_#{suffix}" : '')        autoload name.camelize, file      end    end  endend