Alex
Alex

Reputation: 6475

Rails - authorization based on subscription

I need to limit the content available to a user based on there subscriptions. Which rail authorization plugin will be best ?

I normally use declarative authorization but I dont think it is suited to this task.

Thanks, Alex

Upvotes: 0

Views: 304

Answers (2)

Brent Greeff
Brent Greeff

Reputation: 193

You could try:

Fat Model Auth

Its very flexable.

I think you might need a level of logic above any plugin. I would define a subscription model, (you probably already have one), then I would define which resources are available to a subscription. You might want to put this in the db if you think it will change a lot.

Upvotes: 0

Joshua Partogi
Joshua Partogi

Reputation: 16435

I agree with you. For the same reason, I am using cancan now as it is really flexible and requires me less time to mess around.

Upvotes: 1

Related Questions