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

Nested associations support #67

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Conversation

mlt
Copy link
Contributor

@mlt mlt commented May 21, 2018

One may use

association %s(assoc1-assoc12-assoc23), :column3

or

association %i[assoc1 assoc12 assoc23], :column3

This will result in eager loading of {assoc1: {assoc12: :assoc23}, [:plain_assocs].
Such fields are handled with dashes internally, i.e. full column name is like assoc1-assoc12-assoc23:column3. This presumes there is no colons and dashes in association names.

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 this pull request may close these issues.

1 participant