Update to Arel::Table.alias method #5

Open
wants to merge 2 commits into
from

Conversation

Projects
None yet
1 participant
@ozzyaaron

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