Class: Kms::User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Kms::User
- Defined in:
- app/models/kms/user.rb
Constant Summary collapse
- ROLES =
%i[admin content_manager]
Instance Method Summary collapse
Instance Method Details
#admin? ⇒ Boolean
10 11 12 |
# File 'app/models/kms/user.rb', line 10 def admin? role == "admin" end |
#localized_role ⇒ Object
14 15 16 |
# File 'app/models/kms/user.rb', line 14 def localized_role I18n.t("roles.#{role}") end |