From fa6044d4511f1db620ca29855c1009b1a690e1a5 Mon Sep 17 00:00:00 2001 From: Bohung Date: Tue, 10 May 2022 18:28:16 +0800 Subject: [PATCH] Fix bug. --- lib/bulletin_model/cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bulletin_model/cache.rb b/lib/bulletin_model/cache.rb index 7faab2c..85f8121 100644 --- a/lib/bulletin_model/cache.rb +++ b/lib/bulletin_model/cache.rb @@ -4,7 +4,7 @@ module BulletinModel extend ActiveSupport::Concern included do after_save :do_before_save - after_destroy :do_before_save + before_destroy :do_before_save end def do_before_save if self.class == SubPart