subtree_of named scope missing #11

s-andringa opened this Issue Feb 2, 2010 · 2 comments


None yet
2 participants

Seems odd that this kind of scope is there for all of the other options (descendants, children, etc) but not for subtree. Imagine I get passed in an ID through the params and I'd like to fetch the subtree from the node with that ID. Now I'd have to fetch that individual node first and then call subtree on it, which adds up to 2 database queries, where something like Node.subtree_of(15) would only require 1 query.


stefankroes commented Feb 9, 2010

absolutely right, I will add this


stefankroes commented Feb 27, 2010

added it

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment