From 0e85fae5d9673d0acf9afee5943586028848d70e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Tue, 21 Jan 2025 15:42:08 +0100
Subject: [PATCH] fix

---
 app/models/education/program/category.rb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/app/models/education/program/category.rb b/app/models/education/program/category.rb
index 85f64b646..64a420580 100644
--- a/app/models/education/program/category.rb
+++ b/app/models/education/program/category.rb
@@ -31,4 +31,12 @@ class Education::Program::Category < ApplicationRecord
                           join_table: :education_program_categories_programs,
                           foreign_key: :education_program_category_id,
                           association_foreign_key: :education_program_id
+
+  def dependencies
+    localizations
+  end
+
+  def references
+    programs
+  end
 end
-- 
GitLab