inossidabile / protector

Comfortable (seriously) white-list security restrictions for models on a field level
MIT License
270 stars 31 forks source link

ActiveRecord::ImmutableRelation error #74

Open bernespinoza opened 5 years ago

bernespinoza commented 5 years ago

what?

This error is the evolution of #73 "deprecation warning issue". This error occurs when protector calls exec_queries_with_protector and protector_substitute_includes According to this rails commit https://github.com/rails/rails/commit/3ae98181433dda1b5e19910e107494762512a86c

It happens when you are modifying an already cached arel.