Module: Sequel::Plugins::Tree::ClassMethods
- Defined in:
- lib/sequel/plugins/tree.rb
Instance Attribute Summary collapse
-
#children_association_name ⇒ Object
readonly
The association name for the children association.
-
#parent_association_name ⇒ Object
readonly
The association name for the parent association.
-
#parent_column ⇒ Object
The symbol or array of symbols for the column containing the value pointing to the parent of the node.
-
#qualified_parent_column ⇒ Object
The qualified identifier or array of qualified identifiers for the column containing the value pointing to the parent of the node.
-
#tree_order ⇒ Object
The column symbol or array of column symbols on which to order the tree.
Instance Method Summary collapse
-
#freeze ⇒ Object
Should freeze tree order if it is an array when freezing the model class.
Instance Attribute Details
#children_association_name ⇒ Object (readonly)
The association name for the children association
75 76 77 |
# File 'lib/sequel/plugins/tree.rb', line 75 def children_association_name @children_association_name end |
#parent_association_name ⇒ Object (readonly)
The association name for the parent association
72 73 74 |
# File 'lib/sequel/plugins/tree.rb', line 72 def parent_association_name @parent_association_name end |
#parent_column ⇒ Object
The symbol or array of symbols for the column containing the value pointing to the parent of the node.
65 66 67 |
# File 'lib/sequel/plugins/tree.rb', line 65 def parent_column @parent_column end |
#qualified_parent_column ⇒ Object
The qualified identifier or array of qualified identifiers for the column containing the value pointing to the parent of the node.
69 70 71 |
# File 'lib/sequel/plugins/tree.rb', line 69 def qualified_parent_column @qualified_parent_column end |
#tree_order ⇒ Object
The column symbol or array of column symbols on which to order the tree.
61 62 63 |
# File 'lib/sequel/plugins/tree.rb', line 61 def tree_order @tree_order end |