Sha256: 7db4557c39a73103c046cd9c69e1a2a809294e10da9824f01b30e78a44f1e33a
Contents?: true
Size: 282 Bytes
Versions: 7
Compression:
Stored size: 282 Bytes
Contents
class Transaction < ActiveRecord::Base monetize :amount_cents, :with_model_currency => :currency monetize :tax_cents, :with_model_currency => :currency monetize :total_cents, :with_model_currency => :currency def total_cents return amount_cents + tax_cents end end
Version data entries
7 entries across 7 versions & 1 rubygems