Class: Sis::Core::ExamResult
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Sis::Core::ExamResult
- Defined in:
- app/models/sis/core/exam_result.rb
Constant Summary collapse
- PASS =
'Pass'.freeze
- FAIL =
'Fail'.freeze
Instance Method Summary collapse
Instance Method Details
#set_status ⇒ Object
16 17 18 19 20 21 22 |
# File 'app/models/sis/core/exam_result.rb', line 16 def set_status self.status = if exam && exam.pass_point >= points PASS else FAIL end end |