Class: Role

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/role.rb

Constant Summary

SUPER_ADMIN =
'super_administrator'
ADMIN =
'administrator'
WAREHOUSE =
'warehouse'
REPORT =
'report'
CUSTOMER_SERVICE =
'customer_service'
ROLES =
[ SUPER_ADMIN, 
ADMIN, 
WAREHOUSE, 
REPORT, 
CUSTOMER_SERVICE]
NON_ADMIN_ROLES =
[ WAREHOUSE, 
REPORT, 
CUSTOMER_SERVICE]
SUPER_ADMIN_ID =
1
ADMIN_ID =
2
WAREHOUSE_ID =
3
REPORT_ID =
4
CUSTOMER_SERVICE_ID =
5