Skip to content

Commit 009aca7

Browse files
committed
Mention self_and_ancestors_ids in README
1 parent 51b63ca commit 009aca7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ When you include ```acts_as_tree``` in your model, you can provide a hash to ove
280280
* ```tag.ancestors``` is a ordered scope of [ parent, grandparent, great grandparent, … ]. Note that the size of this array will always equal ```tag.depth```.
281281
* ```tag.ancestor_ids``` is an array of the IDs of the ancestors.
282282
* ```tag.self_and_ancestors``` returns a scope containing self, parent, grandparent, great grandparent, etc.
283+
* ```tag.self_and_ancestors_ids``` returns IDS containing self, parent, grandparent, great grandparent, etc.
283284
* ```tag.siblings``` returns a scope containing all nodes with the same parent as ```tag```, excluding self.
284285
* ```tag.sibling_ids``` returns an array of the IDs of the siblings.
285286
* ```tag.self_and_siblings``` returns a scope containing all nodes with the same parent as ```tag```, including self.

0 commit comments

Comments
 (0)