mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 23:59:40 +02:00
* Fix accountable type references in new account flow * Add remaining references * Refactor accountable type checking * Refactor new account template to use account * Refactor account create action * Refactor account sidebar
9 lines
206 B
Ruby
9 lines
206 B
Ruby
class Account < ApplicationRecord
|
|
belongs_to :family
|
|
|
|
delegated_type :accountable, types: Accountable::TYPES, dependent: :destroy
|
|
|
|
delegate :type_name, to: :accountable
|
|
|
|
monetize :balance_cents
|
|
end
|