set role , true false

1 view
Skip to first unread message

Me

unread,
Apr 29, 2010, 11:27:23 AM4/29/10
to acl9-discuss
Is there a way to set a role to true or false? As in "admin = true".

Sharad Jain

unread,
May 4, 2010, 12:18:21 PM5/4/10
to acl9-d...@googlegroups.com
Not sure if I understand your question:
You can do @user.has_no_role!(:admin) to revoke a role (same as your
admin = false)
And 'admin = true' basically means @user.has_role!(:admin).
Reply all
Reply to author
Forward
0 new messages