From 8658a3bb046d3101336705bfaf5a4fc0d9bf47d1 Mon Sep 17 00:00:00 2001 From: Vincent Date: Fri, 6 Dec 2024 09:42:19 +0100 Subject: [PATCH] Improve compatibility with both Redmine 6 & 5 --- lib/redmine_admin_activity/models/issue_template_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine_admin_activity/models/issue_template_patch.rb b/lib/redmine_admin_activity/models/issue_template_patch.rb index 9a18818..e357d21 100644 --- a/lib/redmine_admin_activity/models/issue_template_patch.rb +++ b/lib/redmine_admin_activity/models/issue_template_patch.rb @@ -28,7 +28,7 @@ def journalized_deactivation_template(project) end end -class IssueTemplate < ApplicationRecord +class IssueTemplate prepend RedmineAdminActivity::Models::IssueTemplatePatch has_many :template_projects, through: :issue_template_projects, source: :project, before_remove: :journalized_deactivation_template, after_add: :journalized_activation_template