RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.
http://railsapps.github.io/rails-stripe-membership-saas
1.14k stars 232 forks source link

How can I allow Platinum members to access both Silver and Gold content? #108

Closed laurenierullo closed 9 years ago

laurenierullo commented 9 years ago

I'm pretty new to programming. Is there a simple way I can program the Platinum account to be able to access both silver and gold content?

I tried adding the following to ability.rb with no results: can :view, :silver && :gold if user.has_role? :platinum

How can I do this? Thanks