Class: Role

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

Instance Method Summary collapse

Instance Method Details

#display_nameObject



10
11
12
# File 'app/models/role.rb', line 10

def display_name
    (I18n.t name.parameterize.underscore, default: name.titleize rescue nil)
end