rails/rails — Issue #4415: ActiveRecord::Relation 'except' broken
Author: jclark42796
Created: 2012-01-11 20:02:57+00:00
State: open

Rails 3.0.9
> Audit.select('id').to_sql
=> "SELECT id FROM 'audits' ORDER BY version, created_at"
> Audit.select('id').except(:order).to_sql
=> "SELECT id FROM 'audits'"

Rails 3.1.3
> Audit.select('id').to_sql
=> "SELECT id FROM 'audits' ORDER BY version, created_at"
> Audit.select('id').except(:order).to_sql
=> "SELECT id FROM 'audits' ORDER BY version, created_at"

I believe this is in
activerecord/lib/active_record/relation/spawn_methods.rb

Still trying to figure out why it's failing, but wanted to report first.

Jim