On Feb 16, 2011, at 1:22 PM, Jason King wrote: > Just want to get this onto the table, "what most people expect" is not the > only measure of a good API choice. > > To specifically answer Aaron's question, for #4598, I think the fix for that > would be for subsequent `default_scope`s to just overwrite previous ones > entirely. Not to merge with them.
Pretty sure the reason default scopes are cumulative is to support STI classes refining their parent classes default scope, but I could be wrong. Outside of that context, I can't think of a use case for calling it multiple times, off the top of my head. Happy to be corrected, though. -- Ernie Miller http://metautonomo.us http://github.com/ernie http://twitter.com/erniemiller -- 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 rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.