From 63e3e78dbad97ba980d8166531997a272949f5db Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 7 Apr 2016 16:20:48 +0800 Subject: [PATCH] fix empty files --- app/controllers/announcement_feeds_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/announcement_feeds_controller.rb b/app/controllers/announcement_feeds_controller.rb index 52fd71a..85d83fb 100644 --- a/app/controllers/announcement_feeds_controller.rb +++ b/app/controllers/announcement_feeds_controller.rb @@ -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