mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
* Remve styling configuration for account types out * No need to tailwind config for models
7 lines
314 B
Ruby
7 lines
314 B
Ruby
class Account < ApplicationRecord
|
|
belongs_to :family
|
|
|
|
delegated_type :accountable, types: %w[ Account::Credit Account::Depository Account::Investment Account::Loan Account::OtherAsset Account::OtherLiability Account::Property Account::Vehicle], dependent: :destroy
|
|
|
|
delegate :type_name, to: :accountable
|
|
end
|