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