extended execution environments by a default file type that is used as the default for associated exercises' files
This commit is contained in:
@ -6,6 +6,7 @@ class ExecutionEnvironment < ActiveRecord::Base
|
||||
after_initialize :set_default_values
|
||||
|
||||
has_many :exercises
|
||||
belongs_to :file_type
|
||||
has_many :hints
|
||||
|
||||
scope :with_exercises, -> { where('id IN (SELECT execution_environment_id FROM exercises)') }
|
||||
|
Reference in New Issue
Block a user