brendon / acts_as_list

An ActiveRecord plugin for managing lists.
http://brendon.github.io/acts_as_list/
MIT License
2.05k stars 356 forks source link

fix setting position when previous position was nil #230

Closed StoneFrog closed 8 years ago

StoneFrog commented 8 years ago

Basically, when position is nil and we try to set new position, it didn't handle reording of other items properly. Fixes issue #109