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 not take default scope added by acts_as_paranoid into consideration for position #57

Closed bhushangahire closed 7 years ago

bhushangahire commented 8 years ago

I am using acts_as_paranoid and when its calculating position its not adding the deleted_at default scope added by acts_as_paranoid. Which causing wrong position if there are any deleted columns

zorab47 commented 8 years ago

Hmm... does acts_as_paradnoid add a default scope? The roots method is configurable, however, the children method called on each item isn't as flexible.

Does calling children on your model with deleted items continue to return the deleted items? In other words, could this be more of an issue with the Ancestry (or other tree structure) gem?

zorab47 commented 7 years ago

Any update here? If so, I'll reopen the issue. But closing for now.