Module: GroupMixins::HiddenUsers::ClassMethods

Defined in:
app/models/group_mixins/hidden_users.rb

Overview

Hidden Users

This group contains all users that are hidden to normal users and only visible to their administrators.

Instance Method Summary collapse

Instance Method Details

#create_hidden_users_groupObject



26
27
28
# File 'app/models/group_mixins/hidden_users.rb', line 26

def create_hidden_users_group
  create_special_group(:hidden_users)
end

#find_hidden_users_groupObject



22
23
24
# File 'app/models/group_mixins/hidden_users.rb', line 22

def find_hidden_users_group
  find_special_group(:hidden_users)
end

#find_or_create_hidden_users_groupObject



30
31
32
# File 'app/models/group_mixins/hidden_users.rb', line 30

def find_or_create_hidden_users_group
  find_or_create_special_group(:hidden_users)
end

#hidden_usersObject



34
35
36
# File 'app/models/group_mixins/hidden_users.rb', line 34

def hidden_users
  find_or_create_hidden_users_group
end

#hidden_users!Object



38
39
40
# File 'app/models/group_mixins/hidden_users.rb', line 38

def hidden_users!
  find_hidden_users_group || raise('special group :hidden_users does not exist.')
end