forked from saurabh/personal-journal
parent
d3b6b15931
commit
a5a3008a5e
|
@ -211,7 +211,7 @@ class JournalPaper
|
||||||
files = []
|
files = []
|
||||||
self.journal_paper_files.each do |file|
|
self.journal_paper_files.each do |file|
|
||||||
url = (file.journal_file.url rescue "")
|
url = (file.journal_file.url rescue "")
|
||||||
title = (file.title.blank? ? File.basename(file.journal_file.path) : file.title)
|
title = ((file.title.blank? ? File.basename(file.journal_file.path) : file.title) rescue "")
|
||||||
files << (url=="" ? "" : "<li><a href='#{url}'' target='_blank'>#{title}</li>")
|
files << (url=="" ? "" : "<li><a href='#{url}'' target='_blank'>#{title}</li>")
|
||||||
end
|
end
|
||||||
value = files.join("")
|
value = files.join("")
|
||||||
|
|
Loading…
Reference in New Issue