Fix bug.
This commit is contained in:
parent
56bee2dab0
commit
9c4fe707c2
|
@ -129,6 +129,7 @@ class ArchivesController < ApplicationController
|
||||||
"file-url" => "/xhr/archive/download?file=#{file.id}"
|
"file-url" => "/xhr/archive/download?file=#{file.id}"
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
end
|
||||||
if archive.urls.present?
|
if archive.urls.present?
|
||||||
archive.urls.each_with_index do |url,i|
|
archive.urls.each_with_index do |url,i|
|
||||||
files << {
|
files << {
|
||||||
|
@ -138,7 +139,6 @@ class ArchivesController < ApplicationController
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
{
|
{
|
||||||
"archive-title" => archive.title,
|
"archive-title" => archive.title,
|
||||||
"description" => archive.description,
|
"description" => archive.description,
|
||||||
|
|
Loading…
Reference in New Issue