Class: Gaku::Api::V1::Students::GuardiansController
- Inherits:
-
BaseController
- Object
- ActionController::API
- ApplicationController
- BaseController
- Gaku::Api::V1::Students::GuardiansController
- Defined in:
- app/controllers/gaku/api/v1/students/guardians_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/guardians_controller.rb', line 9 def index @guardians = @student.guardians respond_to do |format| format.json { render json: @guardians, root: :guardians, adapter: :json } format.msgpack { render msgpack: @guardians, root: :guardians, adapter: :json } end end |