Class: ApiDocs::DocsController

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/api_docs/docs_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
5
6
7
# File 'app/controllers/api_docs/docs_controller.rb', line 2

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