From 8a5da06e8e8ff19149fd20b98e015480d40ecdd7 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Mon, 22 Jul 2019 20:35:50 +0800 Subject: [PATCH] tiaoz --- app/models/attachment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/attachment.rb b/app/models/attachment.rb index 1dbc86123..bdd749108 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -25,7 +25,7 @@ class Attachment < ApplicationRecord validates_length_of :description, maximum: 100 def diskfile - File.join(File.join(Rails.root, "files"), disk_directory.to_s, filename.to_s) + File.join(File.join(Rails.root, "files"), disk_directory.to_s, disk_filename.to_s) end def title