mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Rework Account to use delegated types
This commit is contained in:
parent
938656de0e
commit
71939d6fb5
36 changed files with 282 additions and 0 deletions
|
@ -3,5 +3,7 @@ class Account < ApplicationRecord
|
|||
|
||||
belongs_to :family
|
||||
|
||||
delegated_type :accountable, types: %w[ Credit Depository Investment Loan OtherAsset OtherLiability Property Vehicle]
|
||||
|
||||
scope :depository, -> { where(type: "Depository") }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue