app/models/plutus/amount.rb in plutus-0.8.0 vs app/models/plutus/amount.rb in plutus-0.8.1
- 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
- belongs_to :account
+ belongs_to :transaction, :class_name => 'Plutus::Transaction'
+ belongs_to :account, :class_name => 'Plutus::Account'
validates_presence_of :type, :amount, :transaction, :account
end
-end
\ No newline at end of file
+end