1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 23:59:40 +02:00
Maybe/app/models/account.rb
Josh Brown f8174990ca
Fix accountable type references in new account flow (#395)
* 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
2024-02-09 08:26:54 -06:00

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