Matchu
e8131f3608
Ok so weird little situation, usually Arel will accept an attribute as a param to `order()`, but not when it's in a very specific situation of all of the following: `Item.joins(:translations).includes(:translations).limit(30).order(Item::Translation.arel_table[:name])` For some reason, it's all like "hey I can't call `to_sql` on an attribute!", but only in the scenario where all 3 of those other things are present. Weird! Anyway, explicitly saying `.asc` fixes this. Ok! |
||
---|---|---|
.. | ||
assets | ||
controllers | ||
helpers | ||
mailers | ||
models | ||
views |