Sha256: 3ae6a862ed1bf25d87184b9ff55af4e26bf6419a8447ae37ad21ae27cd687a56

Contents?: true

Size: 465 Bytes

Versions: 1

Compression:

Stored size: 465 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
    belongs_to :transaction, :class_name => 'Plutus::Transaction'
    belongs_to :account, :class_name => 'Plutus::Account'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plutus-0.8.1 app/models/plutus/amount.rb