module Plutus # The Amount class represents debit and credit amounts in the system. # # @abstract # An amount must be a subclass as either a debit or a credit to be saved to the database. # # @author Michael Bulat class Amount < ActiveRecord::Base belongs_to :transaction, :class_name => 'Plutus::Transaction' belongs_to :account, :class_name => 'Plutus::Account' validates_presence_of :type, :amount, :transaction, :account end end