You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see I have sections that sometimes have section_classes , since each section_class is a section how do I prevent from sections_clases updating the parent section it is from and vice verse?
How would I distinguish between
a parent and a child?
The text was updated successfully, but these errors were encountered:
Hi @staycreativedesign, I don't think acts_as_list supports being invoked more than one time on a particular model, though I could be wrong.
The first invocation you have in your class should be enough to allow you to maintain lists scoped by a parent (as long as master_section_id is null at the top of the tree). I do something similar with the ancestry gem to have an ordered tree structure.
The top of list is 1 by default too I think (again, haven't checked the code) so you don't need to declare that.
As you can see I have sections that sometimes have section_classes , since each section_class is a section how do I prevent from sections_clases updating the parent section it is from and vice verse?
How would I distinguish between
a parent and a child?
The text was updated successfully, but these errors were encountered: