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)
|
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?
|
||||||
|
|
Loading…
Reference in New Issue