This commit is contained in:
parent
6141cc56e6
commit
671eaa8d45
|
@ -179,6 +179,7 @@ class Attachment < ActiveRecord::Base
|
|||
File.join(self.class.storage_path, disk_directory.to_s, disk_filename.to_s)
|
||||
end
|
||||
|
||||
#标题
|
||||
def title
|
||||
title = filename.to_s
|
||||
if description.present?
|
||||
|
|
Loading…
Reference in New Issue