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
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.