mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-10 07:55:21 +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 Current.user
|
||||||
return unless redirectable_path?(request.path)
|
return unless redirectable_path?(request.path)
|
||||||
|
|
||||||
if Current.user.onboarded_at.blank?
|
if !Current.user.onboarded?
|
||||||
redirect_to onboarding_path
|
redirect_to onboarding_path
|
||||||
elsif !Current.family.subscribed? && !Current.family.trialing? && !self_hosted?
|
elsif !Current.family.subscribed? && !Current.family.trialing? && !self_hosted?
|
||||||
redirect_to upgrade_subscription_path
|
redirect_to upgrade_subscription_path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue