Module: ComponentsAddChildren::ClassMethods

Defined in:
backend/app/model/mixins/components_add_children.rb

Instance Method Summary collapse

Instance Method Details

#node_record_typeObject



61
62
63
# File 'backend/app/model/mixins/components_add_children.rb', line 61

def node_record_type
  @node_record_type
end

#root_record_typeObject



57
58
59
# File 'backend/app/model/mixins/components_add_children.rb', line 57

def root_record_type
  @root_record_type
end

#tree_record_types(root, node) ⇒ Object



52
53
54
55
# File 'backend/app/model/mixins/components_add_children.rb', line 52

def tree_record_types(root, node)
  @root_record_type = root.to_s
  @node_record_type = node.to_s
end