Module: Arboreal::ClassMethods

Defined in:
lib/arboreal/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#rebuild_ancestryObject

Discard existing ancestry_strings and recompute them from parent relationships.



7
8
9
10
11
12
13
# File 'lib/arboreal/class_methods.rb', line 7

def rebuild_ancestry
  clear_ancestry_strings
  populate_root_ancestry_strings
  begin
    n_changes = extend_ancestry_strings 
  end until n_changes.zero?
end