mirror of
https://github.com/we-promise/sure.git
synced 2026-04-17 11:04:14 +00:00
Add option to association
This commit is contained in:
@@ -3,7 +3,7 @@ class Account < ApplicationRecord
|
||||
|
||||
belongs_to :family
|
||||
|
||||
delegated_type :accountable, types: %w[ Credit Depository Investment Loan OtherAsset OtherLiability Property Vehicle]
|
||||
delegated_type :accountable, types: %w[ Credit Depository Investment Loan OtherAsset OtherLiability Property Vehicle], dependant: :destroy
|
||||
|
||||
scope :depository, -> { where(type: "Depository") }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user