Skip to content
Snippets Groups Projects
Unverified Commit ecf2de86 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix

parent 07de5eea
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ module Communication::Website::WithMenuItems
end
def menu_item_kind_teachers?
about_school? && about.university_people_through_teachers.any?
about_school? && about.university_people_through_program_involvements.any?
end
def menu_item_kind_research_volumes?
......
......@@ -63,12 +63,6 @@ class Education::Program < ApplicationRecord
class_name: 'Education::Program',
foreign_key: :parent_id,
dependent: :destroy
has_many :teachers,
class_name: 'Education::Program::Teacher',
dependent: :destroy
has_many :university_people_through_teachers,
through: :teachers,
source: :person
has_many :roles,
class_name: 'Education::Program::Role',
dependent: :destroy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment