mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-21 22:29:38 +02:00
* Add family snapshots table * Add snapshot method, clean up family expected results * Remove old sync trigger
12 lines
390 B
Ruby
12 lines
390 B
Ruby
class PagesController < ApplicationController
|
|
include Filterable
|
|
before_action :authenticate_user!
|
|
|
|
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)
|
|
end
|
|
end
|