Module: GroupMixins::Developers::ClassMethods

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

Overview

Developers

The group where all developers are members of.

Instance Method Summary collapse

Instance Method Details

#create_developers_groupObject



24
25
26
# File 'app/models/group_mixins/developers.rb', line 24

def create_developers_group
  create_special_group(:developers)
end

#developersObject



32
33
34
# File 'app/models/group_mixins/developers.rb', line 32

def developers
  find_or_create_developers_group
end

#developers!Object



36
37
38
# File 'app/models/group_mixins/developers.rb', line 36

def developers!
  find_developers_group || raise('special group :developers does not exist.')
end

#find_developers_groupObject



20
21
22
# File 'app/models/group_mixins/developers.rb', line 20

def find_developers_group
  find_special_group(:developers)
end

#find_or_create_developers_groupObject



28
29
30
# File 'app/models/group_mixins/developers.rb', line 28

def find_or_create_developers_group
  find_or_create_special_group(:developers)
end