EppO/rolify — Issue #27: [QUESTION] is it possible to manage 2 sets :  Role  and AdminRole ?
Author: erwin
Created: 2012-01-11 07:41:50+00:00
State: open

As I am managing differently AdminUser (background services) and User (foreground services) so no inheritance at all... they area 2 completely different classes

I wonder how to configure rolify ?

1- one unique Role class for AdminUser and User
2- one Role class for User and one AdminRole class for AdminUser

in both cases , I don't see how to write the rolify config/initializer

1-
c.role_cname = "Role"
c.user_cname = "User"
c.user_cname = "AdminUser"

2-
c.role_cname = "Role"
c.role_cname = "AdminRole"
c.user_cname = "User"
c.user_cname = "AdminUser"

or maybe :
c.role_cname = "Role"
c.adminrole_cname = "AdminRole"
c.user_cname = "User"
c.adminuser_cname = "AdminUser"

thanks for your feedback... and thanks a lot for this excellent gem to complement Devise and CanCan !