Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels