pixeltrix/sortifiable — Issue #6: update_position using wrong scope
Author: stefankroes
Created: 2012-03-05 11:28:34+00:00
State: open

Currently this method uses list_class to perform the update.

We are using a paranoid delete solution that defined a default scope: where(:deleted_at => nil).

This means update_position should use base_scope instead because otherwise deleted nodes will not be updated.

We want deleted nodes to be included in the list because we want to be able to restore them to their original position.

Can you change this? It seems like a bug to me.