feat(manager): exports dashboard
This commit is contained in:
parent
ab84222ce4
commit
08c68ef970
7 changed files with 126 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue