swanandp/acts_as_list — pull request #47 by bastien (2012-07-30 14:48:49+00:00)
Title: Fixed issue with update_positions that wasn't taking 'scope_condition' into account

As soon as you would have more than one list, items positions would be updated twice when calling insert_at. The 'update_positions' callback would check if there are more than one page at the new position, and if there was would update the intermediate items. Problem being that this check didn't take the scope into account.

I've fixed the issue and added a test case.