-
Notifications
You must be signed in to change notification settings - Fork 42
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
BUG: I can't add item in the middle of the list. #78
Comments
@dblock @johnnyshields Hey guys. Sorry for pinging directly. It is our team issue. I found an error(or no). Fixed with this commit - we forked and use our repo. Commit here(mby it is bad but works, we didn't run the specs). |
@skalibog if you want to contribute a fix and a test I'd gladly help merge! Someone will need to bring back CI first since Travis-CI is RIP, I would copy all GHA from https://github.com/mongoid/mongoid-locker. |
Fixed by #80 |
@gotoinc @skalibog 6.0.5 has been released which fixes this. Note: if you were using the PR version of #80 please upgrade because it had a slight edge case bug. The bug would occur if you create a new doc, then on the same Ruby object after saving you again changed the position and re-saved it. This case probably doesn't occur in real world apps, because you almost always re-fetch the object in controller actions each time you want to change the position, but just FYI. |
Seems like a bug. Or no functionaly for that. Or i do smth wrong.
Steps to reproduce.
``1. rails c
Model
Help me or I write this functionality by myself.
The text was updated successfully, but these errors were encountered: