Closed RailsCod3rFuture closed 6 years ago
The stripe_id is identical to the role within the enum. But, when I check the role in the console. I get
@user.gold? false
When I check the user directly for their role. I get
@user.role "user"
Mind you, the user.stripe_plan_id is set Rails Console >> subscription_plan_id: 5
How do you set the enum roles up to match the stripe id correctly?
The stripe_id is identical to the role within the enum. But, when I check the role in the console. I get
When I check the user directly for their role. I get
Mind you, the user.stripe_plan_id is set Rails Console >> subscription_plan_id: 5
How do you set the enum roles up to match the stripe id correctly?