From 009aca745e1e6e8f720b43506926a7dc2bcd4e7e Mon Sep 17 00:00:00 2001 From: Kir Shatrov Date: Wed, 5 Feb 2014 15:01:31 +0400 Subject: [PATCH] Mention `self_and_ancestors_ids` in README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6dfe0acc..8b6dc7a3 100644 --- a/README.md +++ b/README.md @@ -280,6 +280,7 @@ When you include ```acts_as_tree``` in your model, you can provide a hash to ove * ```tag.ancestors``` is a ordered scope of [ parent, grandparent, great grandparent, … ]. Note that the size of this array will always equal ```tag.depth```. * ```tag.ancestor_ids``` is an array of the IDs of the ancestors. * ```tag.self_and_ancestors``` returns a scope containing self, parent, grandparent, great grandparent, etc. +* ```tag.self_and_ancestors_ids``` returns IDS containing self, parent, grandparent, great grandparent, etc. * ```tag.siblings``` returns a scope containing all nodes with the same parent as ```tag```, excluding self. * ```tag.sibling_ids``` returns an array of the IDs of the siblings. * ```tag.self_and_siblings``` returns a scope containing all nodes with the same parent as ```tag```, including self.