mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
* Add family snapshots table * Add snapshot method, clean up family expected results * Remove old sync trigger
13 lines
390 B
Ruby
13 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
|