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