Class: Role

Inherits:
Object
  • Object
show all
Includes:
MongoMapper::Document
Defined in:
app/models/role.rb

Instance Method Summary collapse

Instance Method Details

#reserved_rolesObject



14
15
16
# File 'app/models/role.rb', line 14

def reserved_roles
  raise "不能修改删除系统角色" if ["system"].include?(name)
end