default_scope in rails 3

user138095 picture user138095 · Apr 2, 2010 · Viewed 15.4k times · Source

I know named_scope has been changed to scope in rails 3.

How do I perform default_scope in rails 3, I've had a good google but found nothing for defaults scopes.

Answer

Patrick Klingemann picture Patrick Klingemann · Apr 3, 2010

default_scope is available in Rails 3.0, see the following