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