PATCH Make named_scopes remember the current scope when defined

Hi there,

I've submitted a patch a few days ago and now it has 3 positive votes
on lighthouse. Would love some more reviews.
http://rails.lighthouseapp.com/projects/8994/tickets/1960-make-named_scopes-remember-the-current-scope-when-defined

The patch is about named_scopes not remembering previously setted
scopes (like from a has_many assoc) when executed.

Thanks

It would be great if this patch gets merged before 2.3 gets released.
Anyone from the core able to review?

Thanks,

Thanks rich!
http://github.com/rails/rails/commit/0dd2f96f5c90f8abacb0fe0757ef7e5db4a4d501

Applied.