Sha256: 4ae73c524209f4411157482ef72e4b5554e7d2b7bd96064642147f3ce59bf3f3
Contents?: true
Size: 215 Bytes
Versions: 1
Compression:
Stored size: 215 Bytes
Contents
module FileSizeHelper def self.mb_size(bytes) [sprintf("%.3f", bytes.to_f/1.megabyte.to_f), I18n.t('file_size_helper.mb')].join(' ') end def mb_size(bytes) FileSizeHelper.mb_size(bytes) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
the_storages-0.0.2 | app/helpers/file_size_helper.rb |