diff --git a/app/controllers/archives_controller.rb b/app/controllers/archives_controller.rb index e4af582..7fc2662 100644 --- a/app/controllers/archives_controller.rb +++ b/app/controllers/archives_controller.rb @@ -129,16 +129,16 @@ class ArchivesController < ApplicationController "file-url" => "/xhr/archive/download?file=#{file.id}" } end - if archive.urls.present? - archive.urls.each_with_index do |url,i| - files << { - "file-name" => archive.title, - "file-type" => archive.get_url_text(i), - "file-url" => url - } - end - end end + if archive.urls.present? + archive.urls.each_with_index do |url,i| + files << { + "file-name" => archive.title, + "file-type" => archive.get_url_text(i), + "file-url" => url + } + end + end { "archive-title" => archive.title, "description" => archive.description,