2024-10-23 11:20:55 -04:00
|
|
|
class OnboardingsController < ApplicationController
|
2025-05-01 16:47:14 -04:00
|
|
|
layout "wizard"
|
|
|
|
|
2024-10-23 11:20:55 -04:00
|
|
|
before_action :set_user
|
2024-11-01 10:23:27 -05:00
|
|
|
before_action :load_invitation
|
2024-10-23 11:20:55 -04:00
|
|
|
|
|
|
|
def show
|
|
|
|
end
|
|
|
|
|
2025-05-01 16:47:14 -04:00
|
|
|
def preferences
|
2024-10-23 11:20:55 -04:00
|
|
|
end
|
|
|
|
|
2025-05-01 16:47:14 -04:00
|
|
|
def trial
|
2024-10-23 11:20:55 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
def set_user
|
|
|
|
@user = Current.user
|
|
|
|
end
|
2024-11-01 10:23:27 -05:00
|
|
|
|
|
|
|
def load_invitation
|
2024-11-05 19:08:45 -05:00
|
|
|
@invitation = Current.family.invitations.accepted.find_by(email: Current.user.email)
|
2024-11-01 10:23:27 -05:00
|
|
|
end
|
2024-10-23 11:20:55 -04:00
|
|
|
end
|