From 78f7eafcffa3a14d80256d35e35e8593029b61b9 Mon Sep 17 00:00:00 2001 From: chiu Date: Sat, 2 Nov 2019 13:53:33 +0800 Subject: [PATCH] Update journal_paper.rb --- app/models/journal_paper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/journal_paper.rb b/app/models/journal_paper.rb index 8ff8da1..3b10cc8 100644 --- a/app/models/journal_paper.rb +++ b/app/models/journal_paper.rb @@ -215,6 +215,8 @@ class JournalPaper files << (url.nil? ? "" : "
  • #{title}
  • ") end value = files.join("") + when "url" + value = self.url.to_s.blank? ? "" : "#{self.url}" else value = self.send(field) rescue "" end