Class: UserGroup

Inherits:
Forest::ApplicationRecord show all
Defined in:
app/models/user_group.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Forest::ApplicationRecord

cache_key, cache_key_name, csv_columns, #expire_cache_key, expire_cache_key, statusable?, #statusable?, to_csv_template, #to_friendly_param, #to_select2_response, #to_select2_selection, versionable, #versionable

Class Method Details

.resource_descriptionObject



6
7
8
# File 'app/models/user_group.rb', line 6

def self.resource_description
  "User groups allow you to control which users have access to certain resources."
end

Instance Method Details

#display_nameObject



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

def display_name
  name.titleize
end

#to_labelObject



14
15
16
# File 'app/models/user_group.rb', line 14

def to_label
  display_name
end