mirror of
https://github.com/we-promise/sure.git
synced 2026-04-12 08:37:22 +00:00
* Remve styling configuration for account types out * No need to tailwind config for models
8 lines
314 B
Ruby
8 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
|