dev_forum
cxt 5 years ago
parent e65b5692f7
commit 8a5da06e8e

@ -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

Loading…
Cancel
Save