module ClosureTree::Digraphs
Public Instance Methods
to_digraph_label()
click to toggle source
override this method in your model class if you want a different digraph label.
# File lib/closure_tree/digraphs.rb, line 10 def to_digraph_label _ct.has_name? ? read_attribute(_ct.name_column) : to_s end
to_dot_digraph()
click to toggle source
# File lib/closure_tree/digraphs.rb, line 5 def to_dot_digraph self.class.to_dot_digraph(self_and_descendants) end