Module: Perth::AttachmentsHelper

Defined in:
app/helpers/perth/attachments_helper.rb

Instance Method Summary collapse

Instance Method Details

#data_size_column(record, _column) ⇒ Object


23
24
25
# File 'app/helpers/perth/attachments_helper.rb', line 23

def data_size_column(record, _column)
  number_to_human_size(record.data_size)
end

#data_size_show_column(record, _column) ⇒ Object


28
29
30
# File 'app/helpers/perth/attachments_helper.rb', line 28

def data_size_show_column(record, _column)
  number_with_delimiter(record.data_size)
end