Skip to content

Conversation

mordaroso
Copy link

@mordaroso mordaroso commented Apr 29, 2021

I have to work with quite some big tables where we use information from various models. Often joining multiple information from the same table, but through a different association.

For example:

Group to have multiple Users
Group to belong to one User as an admin

And then showing a table like this:

User | Group name | Group admin

Inspired by the addition of Rails 6.1.1 to allow where clause reference association by alias name this PR tries to solve this issue by allowing to overwrite the table_alias of a particular column definition.

This solution should also solve the issue mentioned in #363

@n-rodriguez n-rodriguez force-pushed the master branch 2 times, most recently from b3ae94f to 1a6ec89 Compare August 5, 2024 00:22
@n-rodriguez n-rodriguez force-pushed the master branch 2 times, most recently from a216dea to 2e6315a Compare July 2, 2025 03:27
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