Skip to content

Commit b8960e2

Browse files
committed
Fix missing study group association for exercises
Without this association, the LaExercisesChannel failed to resolve the study groups per exercise, causing an exception. Fixes CODEOCEAN-199
1 parent d75610b commit b8960e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/models/exercise.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class Exercise < ApplicationRecord
3333
has_many :programming_groups
3434
has_many :pair_programming_waiting_users
3535
has_many :request_for_comments
36+
has_many :study_groups, through: :submissions
3637

3738
validate :valid_main_file?
3839
validate :valid_submission_deadlines?

0 commit comments

Comments
 (0)