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
#update_all is not working correctly on ActiveRecord::Relation if #offset is added #10849
Comments
This is also an issue in 4.0 |
@rafaelfranca I debugged this issue. |
as @laurocaetano mentioned on his PR, this seems to be a AREL issue, @maciejkowalski do you mind opening a issue on the arel repo, reference this one, and close it in here? |
Related issue on Rails: rails/rails/issues/10849
This issue has been automatically marked as stale because it has not been commented on for at least The resources of the Rails team are limited, and so we are asking for your help. If you can still reproduce this error on the Thank you for all your contributions. |
This issue has been automatically closed because of inactivity. If you can still reproduce this error on the Thank you for all your contributions. |
I just encountered this bug using Rails 5.0.4. |
I am working with
Rails 3.2.13
onruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]
.Here goes the gemfile:
https://gist.github.com/maciejkowalski/2ba3387d20a7eb750f50
Sample code:
And Spec code:
When I run spec with Rails way code
I get errors, spec doesn't pass.
https://gist.github.com/maciejkowalski/ed9a9096f38c20cead6f
But when I do this via simple
each
everything is OKOutput:
https://gist.github.com/maciejkowalski/99af7eb498a470000492
The text was updated successfully, but these errors were encountered: