Class: Integral::Role

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

Overview

Represents levels of authorization

Instance Method Summary collapse

Instance Method Details

#labelString

Returns label representing the Role.

Returns:

  • (String)

    label representing the Role



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

def label
  I18n.t("integral.backend.roles.labels.#{name.underscore.downcase}")
end