RubyFlow The Ruby and Rails community linklog

Extending Pundit with dedicated policies

Pundit is a wonderful authorization library and it truly shines through the use of OOP and plain Ruby. However, when used with more than one or two user roles, policy objects can quickly become riddled with complex conditional logic. This article looks at how the basic OO concepts that underly Pundit can be put to good use to create dedicated policies per user role.

Comments

Yout HTTPS cert is untrusted

The certificate is only valid for the following names: *.herokuapp.com, herokuapp.com

Thank you, I’ve corrected the link.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in