Sha256: f8eb4143e434db5c49217492713ce4c0111b7d452ffc5cbb816f567ff2c04822
Contents?: true
Size: 295 Bytes
Versions: 7
Compression:
Stored size: 295 Bytes
Contents
class ApiDocs::DocsController < ApiDocs.config.base_controller.to_s.constantize def index @api_controllers = { } Dir.glob(ApiDocs.config.docs_path.join('*.yml')).each do |file_path| @api_controllers[File.basename(file_path, '.yml')] = YAML.load_file(file_path) end end end
Version data entries
7 entries across 7 versions & 1 rubygems