1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 13:19:39 +02:00
Maybe/app/controllers/pages_controller.rb

12 lines
397 B
Ruby
Raw Normal View History

2024-02-02 09:05:04 -06:00
class PagesController < ApplicationController
include Filterable
2024-02-02 09:05:04 -06:00
def dashboard
snapshot = Current.family.snapshot(@period)
@net_worth_series = snapshot[:net_worth_series]
@asset_series = snapshot[:asset_series]
@liability_series = snapshot[:liability_series]
@account_groups = Current.family.accounts.by_group(period: @period, currency: Current.family.currency)
2024-02-02 09:05:04 -06:00
end
end