diff --git a/app/controllers/upgrade_controller.rb b/app/controllers/upgrade_controller.rb index 271b293..fdcf16a 100644 --- a/app/controllers/upgrade_controller.rb +++ b/app/controllers/upgrade_controller.rb @@ -38,7 +38,7 @@ class UpgradeController < ApplicationController } end files = b.bulletin_files.collect do |bf| - file = request.protocol + request.host_with_port + bf.file.url if !bf.file.nil? + file = request.protocol + request.host_with_port + bf.file.url rescue nil { "title" => bf.title_translations, "description" => bf.description_translations,