From b6f9b3fd34de5ad7516bd97a38b46f6c8354d4cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Thu, 13 Jan 2022 12:20:22 +0100 Subject: [PATCH] add administrators in school deps --- app/models/education/school.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/models/education/school.rb b/app/models/education/school.rb index 1bcdadf4a..6f79e2f3b 100644 --- a/app/models/education/school.rb +++ b/app/models/education/school.rb @@ -50,4 +50,10 @@ class Education::School < ApplicationRecord def git_path(website) "data/school.yml" end + + def git_dependencies(website) + [self] + + university_people_through_administrators + + university_people_through_administrators.map(&:administrator) + end end -- GitLab