fix empty files

This commit is contained in:
harrybomrah committed 2016-04-07 16:20:48 +08:00
1 parent ad76febf40
commit 63e3e78dba
1 file changed
+1 -1
@@ -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