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

Allow preload option to an accept a proc #22

Open
blairio opened this issue Apr 18, 2019 · 0 comments
Open

Allow preload option to an accept a proc #22

blairio opened this issue Apr 18, 2019 · 0 comments

Comments

@blairio
Copy link

blairio commented Apr 18, 2019

This is a great gem. It's clean and does the trick of easily eliminating N+1 issues.

However, there are cases in my usage where the details of the resolved record alter the associations that need to be preloaded.

Accepting a proc that receives a record and returns the required preload seems to do the trick.
PR to follow...

=B

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 a pull request may close this issue.

1 participant