fix for files
This commit is contained in:
parent
6b70f1672e
commit
a4b587a86b
|
@ -156,7 +156,8 @@ wb.add_worksheet(name: "Annoucement") do |sheet|
|
|||
row << t.join(";")
|
||||
|
||||
files = anns.bulletin_files.asc(:created_at)
|
||||
t = files.collect{|f|"http://" + request.host_with_port + f.file.url}
|
||||
t = files.collect{|f|("http://" + request.host_with_port + f.file.url rescue nil)}
|
||||
t.delete(nil)
|
||||
row << t.join(";")
|
||||
t = files.collect{|l|l.description_translations["en"]}
|
||||
row << t.join(";")
|
||||
|
|
Loading…
Reference in New Issue