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

Deprecation Warning: Modifying already cached Relation. The cache will be reset. Use a cloned Relation to prevent this warning. #73

Open
bernespinoza opened this issue Nov 1, 2018 · 0 comments

Comments

@bernespinoza
Copy link

what?

This warning is appearing when protector calls exec_queries_with_protector and protector_substitute_includes According to this rails commit rails/rails@1b7aa62

It happens when you are modifying an already cached arel.

ActiveRecord versions

v4.2.10 v4.2.10.rc1 v4.2.9 v4.2.9.rc2 v4.2.9.rc1 v4.2.8 v4.2.8.rc1 v4.2.7.1 v4.2.7 v4.2.7.rc1 v4.2.6 v4.2.6.rc1 v4.2.5.2 v4.2.5.1 v4.2.5 v4.2.5.rc2 v4.2.5.rc1 v4.2.4 v4.2.4.rc1 v4.2.3 v4.2.3.rc1 v4.2.2 v4.2.1 v4.2.1.rc4 v4.2.1.rc3 v4.2.1.rc2 v4.2.1.rc1 v4.2.0 v4.2.0.rc3 v4.2.0.rc2 v4.2.0.rc1 v4.2.0.beta4 v4.2.0.beta3 v4.2.0.beta2 v4.2.0.beta1

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

No branches or pull requests

1 participant