Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: transactional moves #6

Open
moiristo opened this issue Nov 24, 2010 · 0 comments
Open

Suggestion: transactional moves #6

moiristo opened this issue Nov 24, 2010 · 0 comments

Comments

@moiristo
Copy link

First off all, thanks for this gem (much better than acts_as_list imo)!

This may not be a frequently occurring use case, but things went wrong in my code when the validation for a record to be moved didn't pass, which is based on the position of the record. The consequence was that all other records were moved down and the record itself got position nil (it is removed form the list => record valid, reinsertion fails). Therefore, the moving algorithm should be atomic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant