module Sequel::Plugins::Tree::ClassMethods

Attributes

children_association_name[R]

The association name for the children association

parent_association_name[R]

The association name for the parent association

parent_column[RW]

The symbol for the column containing the value pointing to the parent of the leaf.

tree_order[RW]

The column symbol or array of column symbols on which to order the tree.

Public Instance Methods

freeze() click to toggle source

Should freeze tree order if it is an array when freezing the model class.

Calls superclass method
   # File lib/sequel/plugins/tree.rb
76 def freeze
77   @tree_order.freeze if @tree_order.is_a?(Array)
78 
79   super
80 end