Class: EasyApiDoc::ApiController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- EasyApiDoc::ApiController
- Defined in:
- app/controllers/easy_api_doc/api_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 |
# File 'app/controllers/easy_api_doc/api_controller.rb', line 4 def index @api_versions = EasyApiDoc::ApiVersion.all end |
#show ⇒ Object
8 9 10 |
# File 'app/controllers/easy_api_doc/api_controller.rb', line 8 def show @api_version = EasyApiDoc::ApiVersion.find(params[:id]) end |