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]