From b1f47fe1200a5a238fc68618ee65d834c4360569 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 19 Apr 2016 11:19:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E7=89=88=E6=9C=AC=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E5=88=A0=E9=99=A4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/attachment.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/attachment.rb b/app/models/attachment.rb index 55d76ffeb..754bd4dee 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -362,8 +362,7 @@ class Attachment < ActiveRecord::Base #有了历史记录的数据记录是不能被删除的。 #true 能被删除 false 不能被删除 def destroyable - true - # self.attachment_histories.count == 0 + self.attachment_histories.count == 0 end # Returns file's location on disk