From 9a6dbc4875785045628564228aeff0b761a963af Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 7 Apr 2020 10:12:44 +0800 Subject: [PATCH] fix not show problem --- lib/announcement/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/announcement/engine.rb b/lib/announcement/engine.rb index bb956fa..9e662fc 100644 --- a/lib/announcement/engine.rb +++ b/lib/announcement/engine.rb @@ -37,7 +37,7 @@ module Announcement data_item[key_item2] = [value2_item1,value2_item2] require File.expand_path('../../../app/models/anns_cache', __FILE__) if defined? AnnsCache - AnnsCache.all.destroy + AnnsCache.destroy_all end rescue => e puts ['error in announcement',e]