Skip to content

Allow preload option to an accept a proc #22

@blairio

Description

@blairio

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions