diff --git a/app/models/journal_paper.rb b/app/models/journal_paper.rb index a19aeb1..8ff8da1 100644 --- a/app/models/journal_paper.rb +++ b/app/models/journal_paper.rb @@ -210,9 +210,9 @@ class JournalPaper when "file" files = [] self.journal_paper_files.each do |file| - url = (file.journal_file.url rescue "") + url = file.journal_file.url title = ((file.title.blank? ? File.basename(file.journal_file.path) : file.title) rescue "") - files << (url=="" ? "" : "