feat(manager): exports dashboard

This commit is contained in:
Colin Darie 2023-03-22 09:28:08 +01:00
parent ab84222ce4
commit 08c68ef970
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
7 changed files with 126 additions and 0 deletions

View file

@ -3,6 +3,8 @@ require "administrate/field/base"
class AttachmentField < Administrate::Field::Base
include ActionView::Helpers::NumberHelper
def to_s
return "" if data.blank?
"#{data.filename} (#{number_to_human_size(data.byte_size)})"
end
end