1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 15:35:22 +02:00

use helper method

This commit is contained in:
Zach Gollwitzer 2025-05-02 14:42:14 -04:00
parent 4892ab2ea1
commit 03103148ad

View file

@ -18,7 +18,7 @@ module Onboardable
return unless Current.user
return unless redirectable_path?(request.path)
if Current.user.onboarded_at.blank?
if !Current.user.onboarded?
redirect_to onboarding_path
elsif !Current.family.subscribed? && !Current.family.trialing? && !self_hosted?
redirect_to upgrade_subscription_path