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 scope changed #200

Closed brendon closed 8 years ago

brendon commented 8 years ago

I forgot to check if the variable existed before trying to remove it. The tests passed because they weren't executing the callback that triggered the error. The tests now execute the callback, and the bug has been fixed.

swanandp commented 8 years ago

👍

brendon commented 8 years ago

Thanks :) I'd never had much luck with that gem before but it seems to work well in this instance.