Allow programming groups to score exercises remotely

This commit is contained in:
Sebastian Serth
2023-11-01 23:56:56 +01:00
committed by Sebastian Serth
parent fe26378387
commit 3b05a44b9e
5 changed files with 19 additions and 7 deletions

View File

@ -5,6 +5,7 @@ class RemoteEvaluationMapping < ApplicationRecord
include Creation
before_create :generate_token, unless: :validation_token?
belongs_to :exercise
belongs_to :programming_group, optional: true
belongs_to :study_group, optional: true
def generate_token