Sha256: fa7d3470330333ab2be00b22470725d8b300e6d280772cd325f268373146efd7
Contents?: true
Size: 426 Bytes
Versions: 11
Compression:
Stored size: 426 Bytes
Contents
# frozen_string_literal: true module RailsMiniProfiler module ProfiledRequestsHelper include ApplicationHelper def formatted_duration(duration) duration = (duration.to_f / 100) duration < 1 ? duration : duration.round end def formatted_allocations(allocations) number_to_human(allocations, units: { unit: '', thousand: 'k', million: 'M', billion: 'B', trillion: 'T' }) end end end
Version data entries
11 entries across 11 versions & 1 rubygems