app/models/plutus/account.rb in plutus-0.16 vs app/models/plutus/account.rb in plutus-0.17
- old
+ new
@@ -39,9 +39,19 @@
has_many :credit_entries, :through => :credit_amounts, :source => :entry, :class_name => 'Plutus::Entry'
has_many :debit_entries, :through => :debit_amounts, :source => :entry, :class_name => 'Plutus::Entry'
validates_presence_of :type
+ def self.types
+ [
+ ::Plutus::Asset,
+ ::Plutus::Equity,
+ ::Plutus::Expense,
+ ::Plutus::Liability,
+ ::Plutus::Revenue,
+ ]
+ end
+
if Plutus.enable_tenancy
include Plutus::Tenancy
else
include Plutus::NoTenancy
end