Rails - authorization based on subscription
I need to lim开发者_运维技巧it 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
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.
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.
精彩评论