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:
parent
4892ab2ea1
commit
03103148ad
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue