New Edge Rails Feature: Default Scoping
In his "What's New in Edge Rails" series, Ryan Daigle has just written about "default scoping." You're probably familiar with regular named scopes on Rails models, but now there's a default_scope method that defines a scope that exists by default on find methods.
Example:
class Article 'created_at DESC'
end
The default scope also carries across, by default, to [...]








