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
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:
And then showing a table like this:
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 https://github.com/jbox-web/ajax-datatables-rails/issues/363