-
Notifications
You must be signed in to change notification settings - Fork 3
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
Not compatible with ActiveRecord_Associations_CollectionProxy #26
Comments
We recently undid that exact thing as it causes performance issues. This is because there is no way to ensure that As things currently stand in Blueprinter's codebase, there's no way to distinguish between that original |
I think the issue is that we are using the CollectionProxy as a shorthand for 'nested relation, and therefore already loaded'. But there are more direct ways of getting that information. See PR here: #28 |
…ection_proxy [Issue #26] Make pre_render compatible with all children of ActiveRecord::Relation
Fixed in 1.2.0. |
Consider the following:
Basically, I want to change the check in the Preloader#pre_render from matching on class name to
is_a?(ActiveRecord::Relation)
to include all relevant child classes.The text was updated successfully, but these errors were encountered: