Sha256: c044210bd6f3d58ec7e5eac3968b3ac50376379acf6a40a12acfbf554b721e48
Contents?: true
Size: 297 Bytes
Versions: 18
Compression:
Stored size: 297 Bytes
Contents
module HasAccountsHelper include ActionView::Helpers::NumberHelper def currency_fmt(value) # We often do get -0.0 but don't like it value = 0.0 if value.to_s.match %r{^-[0.]*$} number = number_with_precision(value, :precision => 2, :separator => '.', :delimiter => "'") end end
Version data entries
18 entries across 18 versions & 1 rubygems