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

Update to Arel::Table.alias method #5

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

Conversation

ozzyaaron
Copy link

Hi,

A colleague and I were using the Table.alias method today to do multiple joins on the same table but it wasn't working how we expected out of the box according to the readme page.

I've just updated the method to auto-increment the alias name if none is provided, otherwise the user can specify the name of the alias as they did previously.

I hope this is worthwhile :)

Thanks
Aaron

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