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

Fix destroying empty translations in AR table backend #307

Merged

Conversation

raulr
Copy link
Contributor

@raulr raulr commented Nov 23, 2018

Destroying records during each messes up the loop internal pointer, so when there is more than one empty translation some of them are not destroyed.

@shioyama shioyama self-requested a review November 23, 2018 08:33
@shioyama
Copy link
Owner

Thanks very much! I guess the spec (as you've updated it) fails without the code change, right? If so looks good to me.

@raulr
Copy link
Contributor Author

raulr commented Nov 23, 2018

Thats right, I added another empty translation in the specs so it would fail without the fix.

@shioyama
Copy link
Owner

Perfect, thanks!

@shioyama shioyama merged commit 25f8b22 into shioyama:master Nov 23, 2018
@shioyama shioyama temporarily deployed to github-pages November 23, 2018 09:07 Inactive
@shioyama
Copy link
Owner

Released in 0.8.6.

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.

2 participants