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

clone relations to avoid InmmutableRelation #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bernespinoza
Copy link

what?

clone relations to avoid InmmutableRelation deprecation warning and in newer versions Error

why?

Rails and ActiveRecord trigger a deprecation warning when reloads a relation already cached by Arel

rails/rails#14848

rails/rails@1b7aa62

rails/rails@3ae9818

Is this a patch or stable version?

At this point this is a patch, I'll take a look into the official repo. I'll prefer to use the core solution.

@bernespinoza
Copy link
Author

This mitigates these issues inossidabile#73, inossidabile#74 but I need to add some tests and validate other scenarios.

@bernespinoza bernespinoza self-assigned this Feb 14, 2023
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.

1 participant