Sha256: d6d5fdc19b74cde03bca3ff37c7b309c4e48e456b230f0e8ba64ea4423df589d

Contents?: true

Size: 449 Bytes

Versions: 3

Compression:

Stored size: 449 Bytes

Contents

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
    attr_accessible :account, :amount, :transaction
    
    belongs_to :transaction
    belongs_to :account

    validates_presence_of :type, :amount, :transaction, :account
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
plutus-0.7.4 app/models/plutus/amount.rb
plutus-0.7.2 app/models/plutus/amount.rb
plutus-0.7.0 app/models/plutus/amount.rb