app/models/plutus/amount.rb in plutus-0.8.1 vs app/models/plutus/amount.rb in plutus-0.9.0

- old
+ new

@@ -4,11 +4,11 @@ # @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 :entry, :class_name => 'Plutus::Entry' belongs_to :account, :class_name => 'Plutus::Account' - validates_presence_of :type, :amount, :transaction, :account + validates_presence_of :type, :amount, :entry, :account end end