except doesn't work in different scopes

Ecxept doesn't work when you use it in different scopes (in master).

Here is an example:

class A < ActiveRecord::Base   scope :order_by_salary, order("salary DESC")   scope :reorder_by_name, except(:order).order("name DESC") end

So this code won't work:

A.order_by_salary.reorder_by_name

I've created a ticket and patch with tests here: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6290