1
0
Fork 0
forked from OpenNeo/impress
impress/app
Matchu 111d4dcaee Fix bug with Arel ordering
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!
2023-08-02 16:29:31 -07:00
..
assets Delete unused Pledgie files 2023-08-02 14:40:48 -07:00
controllers Fix missing attribute error on homepage 2023-08-02 16:24:27 -07:00
helpers Delete Camo references & Addressable gem 2023-08-02 13:16:22 -07:00
mailers donation mailer 2014-09-10 14:32:54 -05:00
models Fix bug with Arel ordering 2023-08-02 16:29:31 -07:00
views Delete Camo references & Addressable gem 2023-08-02 13:16:22 -07:00