Fix bug.
This commit is contained in:
parent
18f31caa2d
commit
dc737e3bd2
|
@ -8,9 +8,11 @@ module BulletinModel
|
|||
before_destroy :cache_tag_ids
|
||||
end
|
||||
def cache_tag_ids
|
||||
if self.class == Bulletin
|
||||
@tag_ids = self.tag_ids
|
||||
@org_tag_ids = self.org_tag_ids
|
||||
end
|
||||
end
|
||||
def do_before_save
|
||||
if self.class == SubPart
|
||||
AnnsCache.where(parent_id: self.id).delete
|
||||
|
|
Loading…
Reference in New Issue