Class: Role
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Role
- Defined in:
- app/models/role.rb
Instance Method Summary collapse
Instance Method Details
#human_name ⇒ Object
13 14 15 |
# File 'app/models/role.rb', line 13 def human_name name.split('_').last.titlecase end |
#limit(attribute) ⇒ Object
9 10 11 |
# File 'app/models/role.rb', line 9 def limit(attribute) role_limits.pluck(attribute).max end |