Scope like descendants, but includes self too?
h0jeZvgoxFepBQ2C opened this issue · 2 comments
h0jeZvgoxFepBQ2C commented
Hi,
is there a way to get all descendant_ids, but with self included?
kbrock commented
I think path
and path_ids
is what you want.
May want to take a look at the image in https://github.com/stefankroes/ancestry#tree-navigation - pay special attention to the yellow highlighted nodes.
h0jeZvgoxFepBQ2C commented
Hmmm I can't remember anymore why I needed this, and subtree_ids is returning self also.. Dunno why I asked to be honest ^^ Thanks for answering though!