Save submission alongside structured error

This commit is contained in:
Maximilian Grundke
2018-01-30 11:28:29 +01:00
parent 7768d34275
commit 40fe5c4e69
5 changed files with 24 additions and 14 deletions

View File

@ -8,6 +8,7 @@ class Submission < ActiveRecord::Base
belongs_to :exercise
has_many :testruns
has_many :structured_errors
has_many :comments, through: :files
delegate :execution_environment, to: :exercise