mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 12:34:12 +00:00
Remove styling configuration for account types out (#284)
* Remve styling configuration for account types out * No need to tailwind config for models
This commit is contained in:
@@ -3,12 +3,5 @@ class Account < ApplicationRecord
|
||||
|
||||
delegated_type :accountable, types: %w[ Account::Credit Account::Depository Account::Investment Account::Loan Account::OtherAsset Account::OtherLiability Account::Property Account::Vehicle], dependent: :destroy
|
||||
|
||||
delegate :icon, :type_name, :color, to: :accountable
|
||||
|
||||
# Class method to get a representative instance of each accountable type
|
||||
def self.accountable_type_instances
|
||||
accountable_types.map do |type|
|
||||
type.constantize.new
|
||||
end
|
||||
end
|
||||
delegate :type_name, to: :accountable
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user