Show list of feedback messages for specific exercises

This commit is contained in:
Maximilian Grundke
2017-11-08 22:31:01 +01:00
parent 2118e610f9
commit c5c42ca3bc
9 changed files with 40 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ class Exercise < ActiveRecord::Base
has_many :exercise_tags
has_many :tags, through: :exercise_tags
accepts_nested_attributes_for :exercise_tags
has_many :user_exercise_feedbacks
has_many :external_users, source: :user, source_type: ExternalUser, through: :submissions
has_many :internal_users, source: :user, source_type: InternalUser, through: :submissions