zorab47 / active_admin-sortable_tree

Show ActiveAdmin index as a nested tree with drag'n'drop
MIT License
163 stars 127 forks source link

does the gem update the .root? ancestry method? #78

Closed NanoMeko closed 5 years ago

NanoMeko commented 5 years ago

Creating a node in active admin the ancestry root? method is correctly set to true. Adding a second node, and dragging it as a child of the first node, root? stays true although it should be false since it has a parent.

Is it possible to have this gem update the is_root? method when a child is created through the gem?