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

28 lines
692 B
Ruby
Raw Normal View History

2024-02-02 09:05:04 -06:00
class PagesController < ApplicationController
skip_before_action :authenticate_user!, only: %i[early_access]
2024-02-02 09:05:04 -06:00
def dashboard
@period = Period.from_key(params[:period], fallback: true)
@balance_sheet = Current.family.balance_sheet
@accounts = Current.family.accounts.active.with_attached_logo
2024-02-02 09:05:04 -06:00
end
def changelog
@release_notes = Provider::Github.new.fetch_latest_release_notes
render layout: "settings"
end
def feedback
render layout: "settings"
end
def early_access
redirect_to root_path if self_hosted?
@invite_codes_count = InviteCode.count
@invite_code = InviteCode.order("RANDOM()").limit(1).first
render layout: false
end
2024-02-02 09:05:04 -06:00
end