tab/app/helpers/transactions_helper.rb
2015-09-11 13:16:53 +02:00

5 lines
116 B
Ruby

module TransactionsHelper
def amount a
a.zero? ? nil : number_with_precision(a/100.0, precision: 2)
end
end