Method: ExamRegistration::AuthorizationCriterion.parse_criterion_type
- Defined in:
- app/models/exam_registration/authorization_criterion.rb
.parse_criterion_type(type, value) ⇒ Object
32 33 34 35 36 |
# File 'app/models/exam_registration/authorization_criterion.rb', line 32 def self.parse_criterion_type(type, value) "ExamRegistration::AuthorizationCriterion::#{type.camelize}".constantize.new(value) rescue raise "Invalid criterion type #{type}" end |