1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 20:15:22 +02:00

Allow connecting a few accounts before upgrade prompt

This commit is contained in:
Josh Pigford 2025-02-03 09:04:39 -06:00
parent c1e48bd3c9
commit 1620d56e2d
2 changed files with 5 additions and 0 deletions

View file

@ -209,6 +209,10 @@ class Family < ApplicationRecord
entries.order(:date).first&.date || Date.current
end
def active_accounts_count
accounts.active.count
end
private
CategoriesWithTotals = Struct.new(:total_money, :category_totals, keyword_init: true)
CategoryWithStats = Struct.new(:category, :amount_money, :percentage, keyword_init: true)