This commit is contained in:
nwb 2014-06-30 17:49:55 +08:00
parent 6141cc56e6
commit 671eaa8d45
1 changed files with 1 additions and 0 deletions

View File

@ -179,6 +179,7 @@ class Attachment < ActiveRecord::Base
File.join(self.class.storage_path, disk_directory.to_s, disk_filename.to_s) File.join(self.class.storage_path, disk_directory.to_s, disk_filename.to_s)
end end
#标题
def title def title
title = filename.to_s title = filename.to_s
if description.present? if description.present?