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

Handle ranking before validation #69

Closed

Conversation

yaymukund
Copy link

This fixes the breaking spec in #68

After I changed to before_validation, a bunch of specs failed. They failed only because they were using update_attribute, which skips validation. I replaced all uses of update_attribute with update_attributes and all tests pass again.

I think it's a little odd that setting the position is coupled with running validations. I'm not sure how to resolve that without doing ugly stuff like overriding save...

@brendon
Copy link
Owner

brendon commented Jun 4, 2024

Closing this for now.

@brendon brendon closed this Jun 4, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants