Abdelkader Boudih
Abdelkader Boudih
@nicolaep , the path is correct. Seem something off with the reloader of sinatra.
It works perfectly.
How we will handle this with activerecord 6 that support multiple database.?
before_destroy :move_children , prepend: true
but the code is actually bad because that won't update the hierarchy table
That not what he want , he want to make the root to adopt the orphans.
The bug was introduced in https://github.com/mceachen/closure_tree/commit/d0406408fb326b08ec3b86f379f957ce7692ec28#diff-1b9222a399a8e5870dd9f6852b9c1c27 @mceachen , we should fix this.
@rcanand do you mind sending a PR ?
@rselk, do you want to take a stab for this fix ?
Can you send a PR with this feature ?