2013-04-25 09:57:34 +00:00
|
|
|
class RoleCategory < RoleFilter
|
|
|
|
|
|
|
|
has_and_belongs_to_many :users
|
|
|
|
belongs_to :role
|
|
|
|
|
2013-11-15 07:37:19 +00:00
|
|
|
scope :can_display,where(disable: false)
|
|
|
|
|
2013-04-25 09:57:34 +00:00
|
|
|
def self.get_role_data(role_key)
|
|
|
|
|
|
|
|
@role = Role.where(:key =>role_key).first
|
|
|
|
|
|
|
|
return @role.id
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|