diff --git a/app/models/concerns/team_by_subject_model.rb b/app/models/concerns/team_by_subject_model.rb index e1eb7c023..b002f6979 100644 --- a/app/models/concerns/team_by_subject_model.rb +++ b/app/models/concerns/team_by_subject_model.rb @@ -9,6 +9,7 @@ module TeamBySubjectModel valid_subjects = Extends::ACTIVITY_SUBJECT_CHILDREN # Check all activity subject valid_subjects.each do |subject, _children| + subject = subject.to_s.camelize.to_sym next unless subjects[subject] parent_array = [subject.to_s.underscore]