This project is archived and is in readonly mode.

#6731 new
Mathieu Arnold

Arel from git seems to have broken "except"

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

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...

No comments found

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket