Sha256: 29d597a7b28d73440fde0052220f15e5642db18407ab8571fb584217213b60fb
Contents?: true
Size: 248 Bytes
Versions: 68
Compression:
Stored size: 248 Bytes
Contents
module EffectiveFormInputsHelper def price_to_currency(price) price = price || 0 raise 'price_to_currency expects an Integer representing the number of cents' unless price.kind_of?(Integer) number_to_currency(price / 100.0) end end
Version data entries
68 entries across 68 versions & 1 rubygems