From 671eaa8d45e1f2135ff47ac0f23d651a2caee7b2 Mon Sep 17 00:00:00 2001 From: nwb Date: Mon, 30 Jun 2014 17:49:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/attachment.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/attachment.rb b/app/models/attachment.rb index 94f8f7c9..53b2e987 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -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?