search for: self_and_siblings

Displaying 2 results from an estimated 2 matches for "self_and_siblings".

2006 Aug 06
2
better_nested_set plugin
...l parent) * level - number indicating the level, a root being level 0 * ancestors - array of all parents, with root as first item * self_and_ancestors - array of all parents and self * siblings - array of all siblings, that are the items sharing the same parent and level * self_and_siblings - array of itself and all siblings * children_count - count of all immediate children * children - array of all immediate childrens * all_children - array of all children and nested children * full_set - array of itself and all children and nested children Subversion repository...
2007 Apr 30
2
acts_as_tree
...g a :dependent option to the acts_as_tree method so that it can be set to :nullify. For my app, I simply did this by adding a file tree.rb to my lib directory and requiring it in the model. A number of unit-test later it seems like this works fine re all the instance methods (ancestors, siblings, self_and_siblings, roots). So, I''d like to submit a patch via Trac with this small change, but since this would be my first, I thought I''d check in here before doing so to see if there is any reason why I shouldn''t, or if I should use a different approach. Thoughts? -Eric -- Department...