From 781c88df05b8368ed61226a7ca6beca53e022e03 Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 19 Aug 2019 16:51:29 +0800 Subject: [PATCH] Update project.rb fix error --- app/models/project.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/project.rb b/app/models/project.rb index aadcb5a..bec396e 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -133,8 +133,8 @@ class Project files = [] self.project_files.each do |project_file| url = project_file.file.url - title = (project_file.title.blank? ? File.basename(project_file.file.path) : project_file.title) - files << "
  • #{title}
  • " + title = ((project_file.title.blank? ? File.basename(project_file.file.path) : project_file.title) rescue "") + files << (url.nil? ? "" : "
  • #{title}
  • ") end value = files.join("") else