We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quick question: is it possible to have different acts_as_tree options for subclasses of a STI model? Specifically, can we do this:
def Person acts_as_tree end def Person::Teacher < Person acts_as_tree :order => 'age' end def Person::Student < Person acts_as_tree :order => 'name' end
In this example, each teacher, ordered by age, has children ordered by name.
The text was updated successfully, but these errors were encountered:
Played with this a bit, looks like this works fine!
self_and_descendants_preordered doesn't seem to work very well in Rails console but I think that's some other problem.
self_and_descendants_preordered
Sorry, something went wrong.
No branches or pull requests
Quick question: is it possible to have different acts_as_tree options for subclasses of a STI model? Specifically, can we do this:
In this example, each teacher, ordered by age, has children ordered by name.
The text was updated successfully, but these errors were encountered: