set struture
This commit is contained in:
parent
135b14c868
commit
c95271682d
7 changed files with 21 additions and 31 deletions
|
|
@ -1,12 +1,11 @@
|
|||
# encoding: utf-8
|
||||
|
||||
# TODO: rename class to specific name and change all references
|
||||
class Group::Root < ::Group
|
||||
class Group::Circle < ::Group
|
||||
|
||||
self.layer = true
|
||||
|
||||
# TODO: define actual child group types
|
||||
children Group::Root
|
||||
children Group::Circle, Group::HelpCircle
|
||||
|
||||
### ROLES
|
||||
|
||||
6
app/models/group/help_circle.rb
Normal file
6
app/models/group/help_circle.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
# TODO: rename class to specific name and change all references
|
||||
class Group::HelpCircle < ::Group
|
||||
self.layer = true
|
||||
end
|
||||
|
|
@ -8,7 +8,7 @@ module Lit::Group
|
|||
# self.used_attributes += [:website, :bank_account, :description]
|
||||
# self.superior_attributes = [:bank_account]
|
||||
|
||||
root_types Group::Root
|
||||
root_types Group::Circle
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Reference in a new issue