RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.

Home Page:http://railsapps.github.io/rails-stripe-membership-saas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with roles changing to correct membership

RailsCod3rFuture opened this issue · comments

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?