Class: Role
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Role
- Defined in:
- app/models/role.rb
Instance Method Summary collapse
Instance Method Details
#display_name ⇒ Object
10 11 12 |
# File 'app/models/role.rb', line 10 def display_name (I18n.t name.parameterize.underscore, default: name.titleize rescue nil) end |