We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, all
I am working on a large project to upgrade Rails 4 to Rails 5. But we have some problem with includes method.
includes
User.using(:user01).first.user_sessions.includes(:user_wishes).find { |s| s }
In Rails 4, it will return user_session but in Rails 5 it returns [] if we want to got correct value, we have to add to_a like below:
user_session
[]
to_a
User.using(:user01).first.user_sessions.includes(:user_wishes).to_a.find { |s| s }
This happens many times in our project, and we have to add to_a to temporary let it works.
The text was updated successfully, but these errors were encountered:
Does this happen only when you are using Octopus?
Sorry, something went wrong.
Yes, but I think it is resolved after I try to add some patch for #478.
No branches or pull requests
Hi, all
I am working on a large project to upgrade Rails 4 to Rails 5. But we have some problem with
includes
method.In Rails 4, it will return
user_session
but in Rails 5 it returns[]
if we want to got correct value, we have to addto_a
like below:This happens many times in our project, and we have to add
to_a
to temporary let it works.The text was updated successfully, but these errors were encountered: