15 lines
204 B
Ruby
15 lines
204 B
Ruby
|
class RoleCategory < RoleFilter
|
||
|
|
||
|
has_and_belongs_to_many :users
|
||
|
belongs_to :role
|
||
|
|
||
|
def self.get_role_data(role_key)
|
||
|
|
||
|
@role = Role.where(:key =>role_key).first
|
||
|
|
||
|
return @role.id
|
||
|
|
||
|
end
|
||
|
|
||
|
end
|