fix(manager): archives must not be downloadable from manager
This commit is contained in:
parent
3a9b2d99e3
commit
ab84222ce4
3 changed files with 2 additions and 5 deletions
|
@ -5,8 +5,4 @@ class AttachmentField < Administrate::Field::Base
|
|||
def to_s
|
||||
"#{data.filename} (#{number_to_human_size(data.byte_size)})"
|
||||
end
|
||||
|
||||
def blob_path
|
||||
Rails.application.routes.url_helpers.rails_blob_path(data)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1 +1 @@
|
|||
= link_to(field.to_s, field.blob_path)
|
||||
= field.to_s
|
||||
|
|
1
app/views/fields/attachment_field/_show.html.haml
Normal file
1
app/views/fields/attachment_field/_show.html.haml
Normal file
|
@ -0,0 +1 @@
|
|||
= field.to_s
|
Loading…
Reference in a new issue