Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Arel from git seems to have broken "except"

#6731

I was playing with the latest arel, rails and squeel, and I tried a simple thing :

Facture.joins(:devise).sum("montant_ttc / taux")

which used to work, but now does :

SELECT SUM(montant_ttc / taux) AS sum_id FROM "facture" INNER JOIN "devise" ON "devise"."id_devise" = "facture"."id_devise" ORDER BY numero

The query is perfect, only the last part, ORDER BY numero, which comes from a default_scope, should not be there. I tried adding an except(:order) but it seems a noop right now...

Reported by Mathieu Arnold · April 20th, 2011 @ 04:49 PM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

No comments yet.