When I want a 'first' node becoming a child of a 'second' node, and both are sibblings with the same parent_id, the following code raises a exception while executing the move_to method.
Line 342
# detect impossible move
if ((cur_left <= target_left) && (target_left <= cur_right)) or ((cur_left <= target_right) && (target_right <= cur_right))
raise ActiveRecord::ActiveRecordError, "Impossible move, target node cannot be inside moved tree."
end
I didn't have examined the if condition very deeply, but when I remove the condition, everything works fine, because it is not an "impossible move", right?