Show testrun results in statistics

This commit is contained in:
Maximilian Grundke
2016-03-09 15:20:38 +01:00
parent 087b2bdf93
commit 16346fa732
5 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,8 @@ class Submission < ActiveRecord::Base
belongs_to :exercise
has_many :testruns
delegate :execution_environment, to: :exercise
scope :final, -> { where(cause: 'submit') }