fix error

This commit is contained in:
邱博亞 2021-12-05 10:55:14 +08:00
parent 7a9f85ebc0
commit 4c523b4168
1 changed files with 1 additions and 0 deletions

View File

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