Arel::Table
column reference RB-W1018Avoid using "*" on an Arel::Table
column reference.
Using arel_table["*"]
causes the outputted string to be a literal quoted asterisk (e.g. my_model
.*
). This causes the database to look for a column named *
(or "*"
) as opposed to expanding the column list as one would likely expect.
MyTable.arel_table["*"]
MyTable.arel_table[Arel.star]