From 2aecb408177a43590c9b299cabfd261d9b253daa Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Wed, 14 Jan 2015 16:43:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89document.rb=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E5=86=97=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/document.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/document.rb b/app/models/document.rb index e2e0a8d00..48a0151eb 100644 --- a/app/models/document.rb +++ b/app/models/document.rb @@ -81,7 +81,5 @@ class Document < ActiveRecord::Base update_document(self.user,2,self.project) end - def expire_cache - ActionController::Base.new.expire_fragment('activities') - end + end