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