历史版本不能删除问题

This commit is contained in:
huang 2016-04-19 11:19:29 +08:00
parent 43f5f821d5
commit b1f47fe120
1 changed files with 1 additions and 2 deletions

View File

@ -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