This commit is contained in:
BoHung Chiu 2022-05-10 18:28:16 +08:00
parent 3bed92d2a9
commit fa6044d451
1 changed files with 1 additions and 1 deletions

View File

@ -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