|
|
@ -12,7 +12,7 @@ class CompetitionTeam < ActiveRecord::Base
|
|
|
|
|
|
|
|
|
|
|
|
def teacher
|
|
|
|
def teacher
|
|
|
|
teacher_id = self.teachers.first&.user_id
|
|
|
|
teacher_id = self.teachers.first&.user_id
|
|
|
|
User.find_by(id: teacher_id)
|
|
|
|
User.where(id: teacher_id).first
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def group_members
|
|
|
|
def group_members
|
|
|
|