fix empty files

This commit is contained in:
Harry Bomrah 2016-04-07 16:20:48 +08:00
parent ad76febf40
commit 63e3e78dba
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class AnnouncementFeedsController < ApplicationController
b = {}
b["description_translations"] = bf.description_translations
b["title_translations"] = bf.title_translations
b["url"] = "#{request.base_url}" + bf.file.url
b["url"] = ("#{request.base_url}" + bf.file.url rescue "")
a["bulletin_files"] << b
end
all_anns << a