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 to set a table alias on columns #389

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
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