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

@@ -21,6 +21,7 @@ module CodeOcean
belongs_to :file_type
has_many :files
has_many :testruns
alias_method :descendants, :files
mount_uploader :native_file, FileUploader

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') }