From 4c523b4168725fccb1d656da91c5fa8a2a10b244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sun, 5 Dec 2021 10:55:14 +0800 Subject: [PATCH] fix error --- lib/bulletin_model/cache.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bulletin_model/cache.rb b/lib/bulletin_model/cache.rb index 7da6eb9..190c0f4 100644 --- a/lib/bulletin_model/cache.rb +++ b/lib/bulletin_model/cache.rb @@ -4,6 +4,7 @@ module BulletinModel extend ActiveSupport::Concern included do before_save :do_before_save + before_destroy :do_before_save end def do_before_save if self.class == SubPart