Using ActiveRecord Scopes Without Making a Mess
- Published
- Author
Eric HansonBackend Developer
Scopes are one of Rails' most useful features and one of its most abused. Here is how to use them for what they're good at, recognize when they've outgrown the model, and avoid the composition traps that cause subtle bugs.
Read more