tab/app/helpers/transactions_helper.rb

6 lines
116 B
Ruby
Raw Normal View History

2015-09-08 15:25:54 +02:00
module TransactionsHelper
2015-09-11 13:16:53 +02:00
def amount a
a.zero? ? nil : number_with_precision(a/100.0, precision: 2)
end
2015-09-08 15:25:54 +02:00
end