Class: Gaku::Api::V1::Students::ClassGroupsController
- Inherits:
-
BaseController
- Object
- ActionController::API
- ApplicationController
- BaseController
- Gaku::Api::V1::Students::ClassGroupsController
- Defined in:
- app/controllers/gaku/api/v1/students/class_groups_controller.rb
Instance Attribute Summary
Attributes inherited from BaseController
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/controllers/gaku/api/v1/students/class_groups_controller.rb', line 9 def index @class_groups = @student.class_groups respond_to do |format| format.json { render json: @class_groups, root: :class_groups, adapter: :json } format.msgpack { render msgpack: @class_groups, root: :class_groups, adapter: :json } end end |