rails-authorization-plugin first impressions

I started using the rails-authorization-plugin last week. It is a really awesome and flexible plugin. I don’t have much to say about it yet.

But there is one thing that I find confusing:

In order to set a role for a user, you can do it like this:

user.is_admin_for(group)

To check if a user has a role, you can do it like this:

user.is_admin_for?(group)

See the subtle difference? Well, I think the difference is too subtle. Is there a better way to set a role for a user? Haven’t found it yet.

Other than that, the plugin is awesome. It’s super flexible and the integration is pretty seamless. Can’t wait to learn more about it.

This entry was posted in developer tools, web programming and tagged , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam protection by WP Captcha-Free