all users w specific role

11 views
Skip to first unread message

Erwin

unread,
Oct 5, 2009, 6:59:46 PM10/5/09
to Rails Authorization Plugin
How to find all users with a specific role ?

did I miss it in the examples or should I write a loop on the User
model ?

tfyh

erwin

erwin

unread,
Oct 6, 2009, 6:44:17 AM10/6/09
to Rails Authorization Plugin
got it .. dumb me .. Role.find_by_name('a_role').users ( if not
empty..)
Reply all
Reply to author
Forward
0 new messages