fix(manager): archives must not be downloadable from manager

This commit is contained in:
Colin Darie 2023-03-22 09:28:58 +01:00
parent 3a9b2d99e3
commit ab84222ce4
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
3 changed files with 2 additions and 5 deletions

View file

@ -5,8 +5,4 @@ class AttachmentField < Administrate::Field::Base
def to_s def to_s
"#{data.filename} (#{number_to_human_size(data.byte_size)})" "#{data.filename} (#{number_to_human_size(data.byte_size)})"
end end
def blob_path
Rails.application.routes.url_helpers.rails_blob_path(data)
end
end end

View file

@ -1 +1 @@
= link_to(field.to_s, field.blob_path) = field.to_s

View file

@ -0,0 +1 @@
= field.to_s